Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001504, allocations: 103.9 kB / 16.45 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 189 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08268/0.08268, allocations: 12.59 MB / 283.2 MB, free: 15.39 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 84.53 kB / 394.2 MB, free: 45.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1149, allocations: 49.41 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.00509/0.1201, allocations: 2.215 MB / 445.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1219, allocations: 0.6398 MB / 446.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.1222, allocations: 7.938 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.1224, allocations: 27.67 kB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004672/0.1229, allocations: 79.36 kB / 446.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004453/0.1234, allocations: 71.84 kB / 446.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005516/0.1239, allocations: 283 kB / 446.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.1242, allocations: 76.86 kB / 447 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.1245, allocations: 119.4 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1248, allocations: 143.2 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.935e-05/0.1249, allocations: 20 kB / 447.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.125, allocations: 24 kB / 447.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.1251, allocations: 71.62 kB / 447.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002231/0.1254, allocations: 135.1 kB / 447.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004721/0.1259, allocations: 246.9 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.317e-06/0.1259, allocations: 0 / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 6.943e-06/0.1259, allocations: 4 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1259, allocations: 3.938 kB / 447.7 MB, free: 12.31 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001705/0.1276, allocations: 0.6152 MB / 448.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.1277, allocations: 8.031 kB / 448.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1278, allocations: 36.47 kB / 448.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000549/0.1284, allocations: 324.3 kB / 448.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.1284, allocations: 16.41 kB / 448.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.076e-05/0.1285, allocations: 12 kB / 448.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.1294, allocations: 369 kB / 449.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.1294, allocations: 3.938 kB / 449.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.1294, allocations: 4 kB / 449.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.1294, allocations: 4 kB / 449.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002877/0.1297, allocations: 91.89 kB / 449.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.1308, allocations: 0.5365 MB / 449.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.1318, allocations: 317.8 kB / 450 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/0.1322, allocations: 142.6 kB / 450.2 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.344e-05/0.1322, allocations: 8.656 kB / 450.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.1323, allocations: 38.55 kB / 450.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.1323, allocations: 4 kB / 450.2 MB, free: 9.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003323/0.1357, allocations: 1.327 MB / 451.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.1358, allocations: 142.6 kB / 451.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.1363, allocations: 332.6 kB / 452 MB, free: 7.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.1364, allocations: 33.7 kB / 452 MB, free: 7.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.1365, allocations: 149 kB / 452.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.38e-05/0.1366, allocations: 47.53 kB / 452.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.1367, allocations: 70.12 kB / 452.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.1369, allocations: 350.8 kB / 452.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1371, allocations: 72.83 kB / 452.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004076/0.1375, allocations: 314.8 kB / 453 MB, free: 6.516 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.1382, allocations: 413 kB / 453.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.1382, allocations: 7.938 kB / 453.4 MB, free: 5.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008931/0.1391, allocations: 413.3 kB / 453.8 MB, free: 5.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.1392, allocations: 12 kB / 453.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/0.1392, allocations: 12.12 kB / 453.9 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.189e-05/0.1393, allocations: 12 kB / 453.9 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003996/0.1397, allocations: 92.02 kB / 454 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/0.1397, allocations: 15.94 kB / 454 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.1401, allocations: 27.89 kB / 454 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.1401, allocations: 24 kB / 454 MB, free: 5.383 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002376/0.1404, allocations: 169.6 kB / 454.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/0.1411, allocations: 292.5 kB / 454.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009391/0.142, allocations: 392 kB / 454.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.1421, allocations: 8 kB / 454.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/0.1421, allocations: 0 / 454.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.1421, allocations: 3.984 kB / 454.9 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.1426, allocations: 325.3 kB / 455.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1427, allocations: 0 / 455.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007375/0.1434, allocations: 127.8 kB / 455.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.1434, allocations: 4 kB / 455.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.1435, allocations: 15.94 kB / 455.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.1435, allocations: 0 / 455.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.1435, allocations: 8.047 kB / 455.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.1449, allocations: 0.707 MB / 456 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.145, allocations: 116.7 kB / 456.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.54e-05/0.1451, allocations: 20 kB / 456.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.1455, allocations: 11.98 kB / 456.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/0.1456, allocations: 11.94 kB / 456.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.578e-05/0.1457, allocations: 11.98 kB / 456.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004427/0.1461, allocations: 247.1 kB / 456.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1461, allocations: 0 / 456.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008443/0.147, allocations: 64 kB / 456.5 MB, free: 2.777 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001701/0.1472, allocations: 107.2 kB / 456.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.148, allocations: 294.1 kB / 456.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.148, allocations: 128 / 456.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1481, allocations: 35.94 kB / 456.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.1493, allocations: 213.8 kB / 457.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.1514, allocations: 0.7487 MB / 457.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006392/0.152, allocations: 0.808 MB / 458.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.1522, allocations: 39.27 kB / 458.7 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001441/0.1523, allocations: 27.44 kB / 458.8 MB, free: 464 kB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1523, allocations: 0 / 458.8 MB, free: 464 kB / 334.1 MB Notification: Performance of Templates: time 0.01216/0.1645, allocations: 3.659 MB / 462.4 MB, free: 12.79 MB / 350.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches