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.001013/0.001018, allocations: 95.89 kB / 15.73 MB, free: 440 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 178.7 kB / 16.61 MB, free: 6.891 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.541/1.541, allocations: 205.4 MB / 222.8 MB, free: 5.668 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.08712/0.08712, allocations: 12.6 MB / 283.6 MB, free: 8.711 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.000686/0.000686, allocations: 20 kB / 344.5 MB, free: 21.29 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1188, allocations: 50.38 MB / 394.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002379/0.1213, allocations: 1.823 MB / 396.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1223, allocations: 0.6132 MB / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.1224, allocations: 0 / 397.3 MB, free: 372 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.725e-05/0.1225, allocations: 19.8 kB / 397.3 MB, free: 352 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.1228, allocations: 63.7 kB / 397.4 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.123, allocations: 67.91 kB / 397.5 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.1233, allocations: 175.3 kB / 397.6 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.1234, allocations: 56.75 kB / 397.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.1236, allocations: 95.48 kB / 397.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.1238, allocations: 131.3 kB / 397.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.1238, allocations: 12 kB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.012e-05/0.1238, allocations: 8 kB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.847e-05/0.1239, allocations: 47.75 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.124, allocations: 65.58 kB / 398 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.1242, allocations: 179.8 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1242, allocations: 0 / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.24e-06/0.1242, allocations: 0 / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1242, allocations: 3.938 kB / 398.2 MB, free: 15.45 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.001087/0.1253, allocations: 0.584 MB / 398.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1253, allocations: 8.031 kB / 398.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.361e-05/0.1254, allocations: 31.62 kB / 398.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003944/0.1258, allocations: 311.2 kB / 399.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1258, allocations: 12.28 kB / 399.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.1259, allocations: 16 kB / 399.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006338/0.1265, allocations: 376.8 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1265, allocations: 0 / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.1266, allocations: 4 kB / 399.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.1266, allocations: 4 kB / 399.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.1268, allocations: 95.88 kB / 399.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.1275, allocations: 0.5287 MB / 400.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006526/0.1282, allocations: 321 kB / 400.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.1282, allocations: 0 / 400.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.1283, allocations: 43.28 kB / 400.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.224e-06/0.1283, allocations: 3.984 kB / 400.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.002077/0.1304, allocations: 1.209 MB / 401.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1305, allocations: 138.7 kB / 401.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.1309, allocations: 328.6 kB / 402.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.1309, allocations: 33.7 kB / 402.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.131, allocations: 144.8 kB / 402.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.1311, allocations: 43.53 kB / 402.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/0.1311, allocations: 12.03 kB / 402.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1313, allocations: 346.8 kB / 402.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.1314, allocations: 60.72 kB / 402.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002554/0.1317, allocations: 285.7 kB / 403.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.1318, allocations: 111.8 kB / 403.2 MB, free: 10 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1319, allocations: 4 kB / 403.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005225/0.1324, allocations: 373 kB / 403.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1324, allocations: 8 kB / 403.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.1324, allocations: 8 kB / 403.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.748e-05/0.1325, allocations: 15.95 kB / 403.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.1327, allocations: 83.84 kB / 403.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.215e-05/0.1328, allocations: 15.92 kB / 403.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.133, allocations: 28.19 kB / 403.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.582e-05/0.133, allocations: 24 kB / 403.8 MB, free: 9.445 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001824/0.1332, allocations: 161.4 kB / 403.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004277/0.1336, allocations: 261.2 kB / 404.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000609/0.1342, allocations: 341.3 kB / 404.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.1343, allocations: 4 kB / 404.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1343, allocations: 3.953 kB / 404.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1343, allocations: 4 kB / 404.5 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003593/0.1346, allocations: 313.3 kB / 404.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1347, allocations: 7.984 kB / 404.8 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.1352, allocations: 107.9 kB / 404.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.1352, allocations: 4 kB / 404.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.1352, allocations: 15.98 kB / 405 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1352, allocations: 0 / 405 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.1352, allocations: 4 kB / 405 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00092/0.1362, allocations: 0.6976 MB / 405.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.253e-05/0.1362, allocations: 116.6 kB / 405.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.1363, allocations: 20.02 kB / 405.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.1365, allocations: 12 kB / 405.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.1366, allocations: 7.922 kB / 405.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.1366, allocations: 12 kB / 405.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.1369, allocations: 247 kB / 406.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1369, allocations: 0 / 406.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.1373, allocations: 60 kB / 406.1 MB, free: 6.961 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 (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001111/0.1374, allocations: 107.2 kB / 406.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.1379, allocations: 273.4 kB / 406.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1379, allocations: 0 / 406.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.959e-05/0.1379, allocations: 32.05 kB / 406.5 MB, free: 6.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.1385, allocations: 177.9 kB / 406.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.1398, allocations: 0.8202 MB / 407.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.1401, allocations: 0.8073 MB / 408.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.895e-05/0.1402, allocations: 30.97 kB / 408.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.45e-05/0.1403, allocations: 31.38 kB / 408.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1403, allocations: 0 / 408.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of Templates: time 0.006737/0.1471, allocations: 2.963 MB / 411.4 MB, free: 1.668 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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