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.00136/0.00136, allocations: 102.4 kB / 16.03 MB, free: 6.312 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.001617/0.001618, allocations: 190.9 kB / 16.95 MB, free: 6.141 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.711/1.711, allocations: 205.1 MB / 222.8 MB, free: 12.44 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09689/0.09688, allocations: 12.6 MB / 282.7 MB, free: 15.62 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.002223/0.002223, allocations: 91.88 kB / 343 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3923, allocations: 49.38 MB / 392.4 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.004649/0.397, allocations: 2.276 MB / 394.6 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3984, allocations: 0.629 MB / 395.3 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.3986, allocations: 2.469 kB / 395.3 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001778/0.3988, allocations: 16.5 kB / 395.3 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.3991, allocations: 63.34 kB / 395.3 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.3995, allocations: 66.27 kB / 395.4 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004589/0.3999, allocations: 279.5 kB / 395.7 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.4002, allocations: 74.34 kB / 395.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.4004, allocations: 113.5 kB / 395.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.4007, allocations: 150.2 kB / 396 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.4007, allocations: 22.5 kB / 396 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.203e-05/0.4008, allocations: 22.69 kB / 396 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.401, allocations: 66.31 kB / 396.1 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.4011, allocations: 132.2 kB / 396.2 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.4015, allocations: 249.6 kB / 396.5 MB, free: 46.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.4015, allocations: 0.5625 kB / 396.5 MB, free: 46.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4015, allocations: 0 / 396.5 MB, free: 46.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.4015, allocations: 0 / 396.5 MB, free: 46.43 MB / 318.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.001278/0.4028, allocations: 0.619 MB / 397.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.4029, allocations: 10.81 kB / 397.1 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.746e-05/0.403, allocations: 32.5 kB / 397.1 MB, free: 45.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.4034, allocations: 318.7 kB / 397.5 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.4035, allocations: 17.78 kB / 397.5 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.4035, allocations: 17.89 kB / 397.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007924/0.4043, allocations: 381.2 kB / 397.9 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4043, allocations: 0 / 397.9 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.4044, allocations: 5 kB / 397.9 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.4044, allocations: 4.406 kB / 397.9 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.4046, allocations: 87.64 kB / 398 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007403/0.4054, allocations: 0.5342 MB / 398.5 MB, free: 44.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.4061, allocations: 310 kB / 398.8 MB, free: 44.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.4064, allocations: 141.4 kB / 398.9 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.4064, allocations: 7.281 kB / 398.9 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.4065, allocations: 37.97 kB / 399 MB, free: 44.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.774e-06/0.4065, allocations: 4 kB / 399 MB, free: 44.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002602/0.4091, allocations: 1.326 MB / 400.3 MB, free: 43.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.4092, allocations: 144 kB / 400.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004434/0.4097, allocations: 338.5 kB / 400.8 MB, free: 43.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.4097, allocations: 31.17 kB / 400.8 MB, free: 43.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.899e-05/0.4098, allocations: 149 kB / 401 MB, free: 42.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.406e-05/0.4098, allocations: 48.19 kB / 401 MB, free: 42.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.41, allocations: 67.86 kB / 401.1 MB, free: 42.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4101, allocations: 348.2 kB / 401.4 MB, free: 42.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.4102, allocations: 79.55 kB / 401.5 MB, free: 42.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.4106, allocations: 318 kB / 401.8 MB, free: 42.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005466/0.4111, allocations: 415.9 kB / 402.2 MB, free: 41.69 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.4112, allocations: 6.625 kB / 402.2 MB, free: 41.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007475/0.4119, allocations: 413.6 kB / 402.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.412, allocations: 9.406 kB / 402.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-05/0.412, allocations: 9.375 kB / 402.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.444e-05/0.412, allocations: 15.94 kB / 402.6 MB, free: 41.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.4124, allocations: 88.12 kB / 402.7 MB, free: 41.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.84e-05/0.4124, allocations: 19.23 kB / 402.8 MB, free: 41.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.4127, allocations: 27.58 kB / 402.8 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.4127, allocations: 24.31 kB / 402.8 MB, free: 41.42 MB / 318.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.0002493/0.413, allocations: 172 kB / 403 MB, free: 41.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000592/0.4136, allocations: 290.9 kB / 403.3 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007706/0.4144, allocations: 386.6 kB / 403.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.4144, allocations: 5.75 kB / 403.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.4144, allocations: 0 / 403.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4144, allocations: 2.219 kB / 403.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.4148, allocations: 331.1 kB / 404 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4148, allocations: 0 / 404 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005999/0.4154, allocations: 121.5 kB / 404.1 MB, free: 40.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.4154, allocations: 2.688 kB / 404.1 MB, free: 40.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.924e-05/0.4155, allocations: 15.06 kB / 404.1 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.4155, allocations: 2.062 kB / 404.1 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4155, allocations: 1.094 kB / 404.1 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.4166, allocations: 0.7126 MB / 404.8 MB, free: 40.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.554e-05/0.4168, allocations: 119.6 kB / 404.9 MB, free: 39.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.4168, allocations: 16.38 kB / 404.9 MB, free: 39.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000254/0.4171, allocations: 13.53 kB / 405 MB, free: 39.9 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.4171, allocations: 10.52 kB / 405 MB, free: 39.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.4172, allocations: 12.78 kB / 405 MB, free: 39.89 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002731/0.4175, allocations: 248.3 kB / 405.2 MB, free: 39.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4175, allocations: 0 / 405.2 MB, free: 39.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004511/0.4179, allocations: 62.91 kB / 405.3 MB, free: 39.72 MB / 318.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.0001216/0.418, allocations: 110.6 kB / 405.4 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007226/0.4188, allocations: 336.4 kB / 405.7 MB, free: 39.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4188, allocations: 0 / 405.7 MB, free: 39.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.345e-05/0.4189, allocations: 23.53 kB / 405.7 MB, free: 39.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008341/0.4197, allocations: 216.8 kB / 406 MB, free: 39.37 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.4211, allocations: 0.8741 MB / 406.8 MB, free: 38.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.4214, allocations: 0.8128 MB / 407.6 MB, free: 37.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.909e-05/0.4215, allocations: 36.03 kB / 407.7 MB, free: 37.94 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.468e-05/0.4216, allocations: 31.42 kB / 407.7 MB, free: 37.91 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4216, allocations: 0 / 407.7 MB, free: 37.91 MB / 318.1 MB Notification: Performance of Templates: time 0.006834/0.4284, allocations: 3.527 MB / 411.2 MB, free: 34.4 MB / 318.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