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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001462/0.001462, allocations: 176.4 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 213.8 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 102.4 kB / 261.8 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1605/0.1605, allocations: 12.59 MB / 322.3 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.696e-05, allocations: 0 / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.08995, allocations: 50.37 MB / 429.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5199/0.6099, allocations: 79.33 MB / 0.4967 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.6102, allocations: 73.69 kB / 0.4968 GB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01606/0.6263, allocations: 3.648 MB / 0.5003 GB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.6263, allocations: 0 / 0.5003 GB, free: 11.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.6263, allocations: 3.969 kB / 0.5003 GB, free: 11.45 MB / 330.7 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.0007965/0.6272, allocations: 0.5076 MB / 0.5008 GB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.507e-05/0.6272, allocations: 11.69 kB / 0.5008 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.371e-05/0.6273, allocations: 31.16 kB / 0.5009 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004816/0.6278, allocations: 305.4 kB / 0.5012 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.6279, allocations: 3.844 kB / 0.5012 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.6279, allocations: 21.64 kB / 0.5012 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002334/0.6282, allocations: 69.19 kB / 0.5013 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.6289, allocations: 331.7 kB / 0.5016 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.6289, allocations: 0 / 0.5016 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.6289, allocations: 0 / 0.5016 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.6289, allocations: 3.844 kB / 0.5016 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009256/0.6299, allocations: 0.4945 MB / 0.5021 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009036/0.6308, allocations: 288.4 kB / 0.5023 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.6311, allocations: 123.6 kB / 0.5025 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.501e-05/0.6311, allocations: 7.406 kB / 0.5025 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.6312, allocations: 37.72 kB / 0.5025 GB, free: 10.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.456e-06/0.6312, allocations: 7.938 kB / 0.5025 GB, free: 10.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002628/0.6339, allocations: 1.061 MB / 0.5035 GB, free: 9.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.848e-05/0.634, allocations: 129.3 kB / 0.5037 GB, free: 9.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.6344, allocations: 286.8 kB / 0.5039 GB, free: 9.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.6345, allocations: 26.45 kB / 0.504 GB, free: 9.324 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.91e-05/0.6346, allocations: 147.1 kB / 0.5041 GB, free: 9.238 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.84e-05/0.6346, allocations: 43.47 kB / 0.5041 GB, free: 9.219 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.358e-05/0.6347, allocations: 0 / 0.5041 GB, free: 9.219 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.6348, allocations: 349.4 kB / 0.5045 GB, free: 8.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.6349, allocations: 51.83 kB / 0.5045 GB, free: 8.906 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.6351, allocations: 272.3 kB / 0.5048 GB, free: 8.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.6354, allocations: 110.6 kB / 0.5049 GB, free: 8.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.6354, allocations: 3.938 kB / 0.5049 GB, free: 8.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006519/0.6361, allocations: 314.1 kB / 0.5052 GB, free: 8.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.6361, allocations: 11.03 kB / 0.5052 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6361, allocations: 7.719 kB / 0.5052 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.6362, allocations: 15.5 kB / 0.5052 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.6366, allocations: 89.45 kB / 0.5053 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.6367, allocations: 17.89 kB / 0.5053 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.637, allocations: 13.7 kB / 0.5053 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.6371, allocations: 26.48 kB / 0.5054 GB, free: 8.477 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001433/0.6372, allocations: 120.1 kB / 0.5055 GB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005749/0.6378, allocations: 255.3 kB / 0.5057 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007815/0.6386, allocations: 321 kB / 0.506 GB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.258e-06/0.6386, allocations: 6.562 kB / 0.506 GB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.6387, allocations: 4.562 kB / 0.506 GB, free: 8.238 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.6387, allocations: 4 kB / 0.506 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004683/0.6392, allocations: 272.2 kB / 0.5063 GB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.6392, allocations: 7.672 kB / 0.5063 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.6402, allocations: 116.6 kB / 0.5064 GB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.6403, allocations: 3.812 kB / 0.5064 GB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.6403, allocations: 11.08 kB / 0.5064 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.6403, allocations: 3.844 kB / 0.5064 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.6403, allocations: 3.938 kB / 0.5064 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.6415, allocations: 0.6471 MB / 0.5071 GB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.6416, allocations: 121 kB / 0.5072 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/0.6417, allocations: 3.812 kB / 0.5072 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.6421, allocations: 10.67 kB / 0.5072 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.922e-05/0.6422, allocations: 0 / 0.5072 GB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/0.6422, allocations: 17.27 kB / 0.5072 GB, free: 7.652 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003186/0.6426, allocations: 232.2 kB / 0.5074 GB, free: 7.574 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6426, allocations: 0 / 0.5074 GB, free: 7.574 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006644/0.6432, allocations: 53.81 kB / 0.5075 GB, free: 7.57 MB / 330.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.0001525/0.6434, allocations: 105.4 kB / 0.5076 GB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005461/0.644, allocations: 231.3 kB / 0.5078 GB, free: 7.453 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.644, allocations: 0 / 0.5078 GB, free: 7.453 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.096e-05/0.6441, allocations: 22.97 kB / 0.5078 GB, free: 7.449 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007912/0.6449, allocations: 174.8 kB / 0.508 GB, free: 7.422 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.6464, allocations: 0.5422 MB / 0.5085 GB, free: 7.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.6467, allocations: 0.8153 MB / 0.5093 GB, free: 6.348 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.6469, allocations: 26.81 kB / 0.5094 GB, free: 6.336 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.6471, allocations: 34.48 kB / 0.5094 GB, free: 6.324 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6471, allocations: 4 kB / 0.5094 GB, free: 6.32 MB / 330.7 MB Notification: Performance of Templates: time 0.009536/0.6566, allocations: 2.813 MB / 0.5121 GB, free: 4.977 MB / 330.7 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/jenkins1/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