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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009912/0.0009912, allocations: 186.1 kB / 7.841 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.2 MB / 213.5 MB, free: 13.85 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.0008977/0.0008975, allocations: 87.47 kB / 261.5 MB, free: 13.54 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.07568/0.07568, allocations: 12.59 MB / 322 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.561e-06/5.661e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.07989, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2347/0.3147, allocations: 79.25 MB / 0.4961 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.315, allocations: 71.64 kB / 0.4962 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01023/0.3252, allocations: 3.343 MB / 0.4994 GB, free: 11.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.3253, allocations: 7.781 kB / 0.4994 GB, free: 11.43 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.0005529/0.3258, allocations: 0.5064 MB / 0.4999 GB, free: 11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3259, allocations: 13.66 kB / 0.4999 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.949e-05/0.3259, allocations: 36.64 kB / 0.5 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.3263, allocations: 312.6 kB / 0.5003 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3263, allocations: 7.719 kB / 0.5003 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.3264, allocations: 8.438 kB / 0.5003 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001582/0.3265, allocations: 80.92 kB / 0.5004 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.327, allocations: 330.6 kB / 0.5007 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.327, allocations: 0 / 0.5007 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.327, allocations: 0 / 0.5007 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.3271, allocations: 3.969 kB / 0.5007 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006003/0.3277, allocations: 0.4902 MB / 0.5012 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.3282, allocations: 291.7 kB / 0.5014 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.3284, allocations: 124.6 kB / 0.5016 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.3285, allocations: 3.906 kB / 0.5016 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.3285, allocations: 43.84 kB / 0.5016 GB, free: 10.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 1.362e-06/0.3285, allocations: 3.938 kB / 0.5016 GB, free: 10.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001691/0.3302, allocations: 1.069 MB / 0.5027 GB, free: 9.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.3303, allocations: 125.7 kB / 0.5028 GB, free: 9.438 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.3306, allocations: 280 kB / 0.503 GB, free: 9.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3306, allocations: 25.7 kB / 0.5031 GB, free: 9.312 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.3306, allocations: 110.8 kB / 0.5032 GB, free: 9.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.3307, allocations: 46.33 kB / 0.5032 GB, free: 9.207 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.897e-06/0.3307, allocations: 0 / 0.5032 GB, free: 9.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3308, allocations: 355.1 kB / 0.5036 GB, free: 8.887 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.619e-05/0.3309, allocations: 53.77 kB / 0.5036 GB, free: 8.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.3311, allocations: 264.7 kB / 0.5039 GB, free: 8.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.3313, allocations: 105.5 kB / 0.504 GB, free: 8.586 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3313, allocations: 0 / 0.504 GB, free: 8.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004497/0.3318, allocations: 311.6 kB / 0.5043 GB, free: 8.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3318, allocations: 11.78 kB / 0.5043 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.3318, allocations: 12.44 kB / 0.5043 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.3318, allocations: 11.62 kB / 0.5043 GB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002533/0.3321, allocations: 88.56 kB / 0.5044 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.3321, allocations: 11.19 kB / 0.5044 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.3323, allocations: 19.45 kB / 0.5044 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.3324, allocations: 22.14 kB / 0.5044 GB, free: 8.473 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.000104/0.3325, allocations: 124.5 kB / 0.5045 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000363/0.3329, allocations: 264.2 kB / 0.5048 GB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004969/0.3334, allocations: 325.3 kB / 0.5051 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.3334, allocations: 3.844 kB / 0.5051 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3334, allocations: 0 / 0.5051 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.3334, allocations: 6.422 kB / 0.5051 GB, free: 8.234 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.3337, allocations: 270.7 kB / 0.5054 GB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3337, allocations: 4 kB / 0.5054 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005808/0.3343, allocations: 121.1 kB / 0.5055 GB, free: 8.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3343, allocations: 7.797 kB / 0.5055 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.3344, allocations: 1.547 kB / 0.5055 GB, free: 8.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.3344, allocations: 7.703 kB / 0.5055 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3344, allocations: 4 kB / 0.5055 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006664/0.335, allocations: 0.6486 MB / 0.5062 GB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.556e-05/0.3351, allocations: 114.4 kB / 0.5063 GB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.3352, allocations: 11.59 kB / 0.5063 GB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002588/0.3355, allocations: 9.094 kB / 0.5063 GB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-05/0.3355, allocations: 5.734 kB / 0.5063 GB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3355, allocations: 16.36 kB / 0.5063 GB, free: 7.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001779/0.3357, allocations: 231.5 kB / 0.5065 GB, free: 7.559 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004031/0.3361, allocations: 49.69 kB / 0.5066 GB, free: 7.555 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.0001124/0.3362, allocations: 100.9 kB / 0.5067 GB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.3366, allocations: 233.7 kB / 0.5069 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3366, allocations: 4.125 kB / 0.5069 GB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.613e-05/0.3366, allocations: 23.72 kB / 0.5069 GB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.3372, allocations: 170.3 kB / 0.5071 GB, free: 7.422 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.3382, allocations: 0.5474 MB / 0.5076 GB, free: 7.164 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.3385, allocations: 0.8475 MB / 0.5084 GB, free: 6.441 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3386, allocations: 0 / 0.5084 GB, free: 6.441 MB / 330.7 MB Notification: Performance of Templates: time 0.005897/0.3445, allocations: 2.729 MB / 0.5111 GB, free: 5.137 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/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