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.009178/0.009178, allocations: 93.11 kB / 15.91 MB, free: 6.273 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.002611/0.002611, allocations: 202.4 kB / 16.84 MB, free: 6.188 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.595/1.595, allocations: 205.1 MB / 222.7 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08038/0.08038, allocations: 12.59 MB / 282.6 MB, free: 8.855 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.001694/0.001694, allocations: 80.73 kB / 342.8 MB, free: 21.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1241, allocations: 49.41 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.003953/0.1281, allocations: 2.253 MB / 394.4 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.1293, allocations: 0.6362 MB / 395.1 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1295, allocations: 4 kB / 395.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1296, allocations: 15.8 kB / 395.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.1299, allocations: 63.56 kB / 395.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.1302, allocations: 55.94 kB / 395.2 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.1305, allocations: 278.8 kB / 395.5 MB, free: 404 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.1307, allocations: 60.95 kB / 395.5 MB, free: 348 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.1309, allocations: 115.4 kB / 395.7 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1311, allocations: 147.2 kB / 395.8 MB, free: 84 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.1311, allocations: 12 kB / 395.8 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.584e-05/0.1311, allocations: 16 kB / 395.8 MB, free: 56 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.1312, allocations: 55.69 kB / 395.9 MB, free: 0 / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.1314, allocations: 123.2 kB / 396 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.1316, allocations: 235.1 kB / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.1316, allocations: 0 / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1316, allocations: 0 / 396.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.1316, allocations: 3.938 kB / 396.2 MB, free: 15.64 MB / 302.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.001103/0.1327, allocations: 0.623 MB / 396.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1328, allocations: 12.03 kB / 396.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.934e-05/0.1328, allocations: 32.56 kB / 396.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/0.1332, allocations: 316.3 kB / 397.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.1333, allocations: 20.39 kB / 397.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.1333, allocations: 12 kB / 397.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.1341, allocations: 384.7 kB / 397.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.1341, allocations: 0 / 397.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.1341, allocations: 8 kB / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.1341, allocations: 0 / 397.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.1344, allocations: 87.95 kB / 397.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000719/0.1352, allocations: 0.5364 MB / 398.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006585/0.1358, allocations: 311.9 kB / 398.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002054/0.136, allocations: 138.5 kB / 398.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.1361, allocations: 15.98 kB / 398.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1361, allocations: 34.56 kB / 398.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.232e-06/0.1361, allocations: 0 / 398.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002553/0.1387, allocations: 1.326 MB / 400.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.1388, allocations: 142.6 kB / 400.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005613/0.1394, allocations: 332.6 kB / 400.5 MB, free: 11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.1395, allocations: 29.7 kB / 400.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1396, allocations: 145.1 kB / 400.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.135e-05/0.1396, allocations: 55.56 kB / 400.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.83e-05/0.1397, allocations: 66.12 kB / 400.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.1399, allocations: 350.8 kB / 401.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.1401, allocations: 68.83 kB / 401.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.1405, allocations: 322.8 kB / 401.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004416/0.1409, allocations: 409 kB / 401.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.141, allocations: 3.938 kB / 401.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000566/0.1415, allocations: 413.1 kB / 402.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.1416, allocations: 8.938 kB / 402.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.1416, allocations: 12 kB / 402.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.1416, allocations: 12 kB / 402.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.1419, allocations: 95.83 kB / 402.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.294e-05/0.1419, allocations: 15.94 kB / 402.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.1421, allocations: 23.98 kB / 402.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.1421, allocations: 20 kB / 402.5 MB, free: 8.727 MB / 302.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.0001709/0.1423, allocations: 177.7 kB / 402.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004797/0.1428, allocations: 288.9 kB / 403 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006205/0.1434, allocations: 388.4 kB / 403.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1434, allocations: 4 kB / 403.4 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1435, allocations: 4 kB / 403.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1435, allocations: 4.047 kB / 403.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004258/0.1439, allocations: 325.3 kB / 403.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1439, allocations: 8 kB / 403.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005931/0.1445, allocations: 128 kB / 403.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1445, allocations: 4 kB / 403.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.1446, allocations: 8 kB / 403.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/0.1446, allocations: 7.984 kB / 403.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1446, allocations: 7.922 kB / 403.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1456, allocations: 0.7148 MB / 404.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.322e-05/0.1458, allocations: 116.6 kB / 404.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.1458, allocations: 16 kB / 404.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.1461, allocations: 11.98 kB / 404.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.1461, allocations: 0 / 404.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.1461, allocations: 19.98 kB / 404.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.1464, allocations: 243.1 kB / 405 MB, free: 6.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1464, allocations: 4.062 kB / 405 MB, free: 6.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.1468, allocations: 64 kB / 405 MB, free: 6.113 MB / 302.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.0001252/0.147, allocations: 111.1 kB / 405.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004838/0.1475, allocations: 293.3 kB / 405.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1475, allocations: 0 / 405.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.176e-05/0.1475, allocations: 24 kB / 405.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000784/0.1483, allocations: 225.7 kB / 405.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.1498, allocations: 0.8632 MB / 406.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004167/0.1502, allocations: 0.8194 MB / 407.4 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.696e-05/0.1503, allocations: 35.27 kB / 407.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.591e-05/0.1504, allocations: 35.42 kB / 407.4 MB, free: 3.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1504, allocations: 0 / 407.4 MB, free: 3.66 MB / 302.1 MB Notification: Performance of Templates: time 0.007434/0.1578, allocations: 3.311 MB / 410.7 MB, free: 356 kB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches