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.001157/0.001157, allocations: 173.2 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.415/1.415, allocations: 205 MB / 222.5 MB, free: 9.164 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.0008947/0.0008945, allocations: 93.17 kB / 270.5 MB, free: 8.68 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.06942/0.06942, allocations: 12.56 MB / 331 MB, free: 12.09 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003849, allocations: 16 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08124/0.08164, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.002114/0.0838, allocations: 1.933 MB / 443.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.08489, allocations: 0.6205 MB / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.08513, allocations: 0 / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.08531, allocations: 19.8 kB / 444.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003382/0.08565, allocations: 67.59 kB / 444.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.08596, allocations: 59.88 kB / 444.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003154/0.08628, allocations: 266.8 kB / 444.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.08648, allocations: 68.94 kB / 444.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.08667, allocations: 99.39 kB / 444.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.08686, allocations: 127.2 kB / 444.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.696e-05/0.08692, allocations: 12 kB / 444.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.563e-05/0.08696, allocations: 12 kB / 445 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.8e-05/0.08704, allocations: 51.69 kB / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.686e-05/0.08714, allocations: 119.1 kB / 445.1 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001513/0.0873, allocations: 179.7 kB / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.08731, allocations: 0 / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.08732, allocations: 0 / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.08733, allocations: 0 / 445.3 MB, free: 12.78 MB / 298.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.0009724/0.08831, allocations: 0.5764 MB / 445.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.08836, allocations: 8.031 kB / 445.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.084e-05/0.08846, allocations: 36.56 kB / 445.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.0888, allocations: 320.3 kB / 446.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.08883, allocations: 12.41 kB / 446.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.423e-05/0.08887, allocations: 20 kB / 446.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.08941, allocations: 400.6 kB / 446.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.08943, allocations: 0 / 446.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.08945, allocations: 8 kB / 446.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.08947, allocations: 0 / 446.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.08966, allocations: 91.89 kB / 446.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006319/0.0903, allocations: 0.5287 MB / 447.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005764/0.09089, allocations: 319.9 kB / 447.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001785/0.09108, allocations: 134.6 kB / 447.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.09113, allocations: 8 kB / 447.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.09116, allocations: 42.5 kB / 447.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.09116, allocations: 0 / 447.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001959/0.09313, allocations: 1.334 MB / 449.1 MB, free: 8.656 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.09321, allocations: 134.6 kB / 449.2 MB, free: 8.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.09352, allocations: 340.7 kB / 449.6 MB, free: 8.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.09356, allocations: 33.7 kB / 449.6 MB, free: 8.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.09363, allocations: 149 kB / 449.7 MB, free: 7.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.517e-05/0.09368, allocations: 43.53 kB / 449.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-05/0.09372, allocations: 41.7 kB / 449.8 MB, free: 7.879 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.866e-05/0.0938, allocations: 346.8 kB / 450.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.09392, allocations: 76.83 kB / 450.2 MB, free: 7.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.09412, allocations: 322.7 kB / 450.6 MB, free: 7.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.09446, allocations: 420.9 kB / 451 MB, free: 6.484 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.09448, allocations: 7.938 kB / 451 MB, free: 6.477 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005272/0.09501, allocations: 413.3 kB / 451.4 MB, free: 6.066 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.09504, allocations: 8 kB / 451.4 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.09505, allocations: 12 kB / 451.4 MB, free: 6.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.09508, allocations: 16.06 kB / 451.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.09531, allocations: 91.84 kB / 451.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.09534, allocations: 23.98 kB / 451.5 MB, free: 5.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.09556, allocations: 20 kB / 451.6 MB, free: 5.898 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.09559, allocations: 24 kB / 451.6 MB, free: 5.875 MB / 298.7 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.0001328/0.09572, allocations: 169.5 kB / 451.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003714/0.0961, allocations: 296.8 kB / 452 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005115/0.09662, allocations: 388.2 kB / 452.4 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.09664, allocations: 4 kB / 452.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.09665, allocations: 0 / 452.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.09666, allocations: 0 / 452.4 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.09694, allocations: 325.3 kB / 452.7 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.09695, allocations: 0 / 452.7 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.09747, allocations: 127.8 kB / 452.9 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.09749, allocations: 7.938 kB / 452.9 MB, free: 4.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.09752, allocations: 12 kB / 452.9 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.09753, allocations: 4 kB / 452.9 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.09753, allocations: 0 / 452.9 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007696/0.09831, allocations: 0.7189 MB / 453.6 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.697e-05/0.09839, allocations: 124.6 kB / 453.7 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.09845, allocations: 16 kB / 453.7 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.09869, allocations: 8 kB / 453.7 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.09874, allocations: 7.984 kB / 453.8 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.09876, allocations: 12 kB / 453.8 MB, free: 3.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001873/0.09895, allocations: 247.1 kB / 454 MB, free: 3.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09896, allocations: 3.938 kB / 454 MB, free: 3.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004005/0.09937, allocations: 68.06 kB / 454.1 MB, free: 3.266 MB / 298.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 () * 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 8.562e-05/0.09946, allocations: 107.2 kB / 454.2 MB, free: 3.152 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004212/0.09989, allocations: 297.4 kB / 454.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.0999, allocations: 0 / 454.5 MB, free: 2.863 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.009e-05/0.09996, allocations: 35.92 kB / 454.5 MB, free: 2.828 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.1006, allocations: 215.4 kB / 454.7 MB, free: 2.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.1018, allocations: 0.8913 MB / 455.6 MB, free: 1.695 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.102, allocations: 0.8156 MB / 456.4 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.786e-05/0.1021, allocations: 35.42 kB / 456.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1021, allocations: 0 / 456.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of Templates: time 0.006525/0.1086, allocations: 3.878 MB / 460.3 MB, free: 12.93 MB / 314.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