Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001409/0.001409, allocations: 191 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 47.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3893, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004527/0.3939, allocations: 1.829 MB / 402.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.3961, allocations: 1.033 MB / 403.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.3962, allocations: 3.938 kB / 403.6 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008006/0.397, allocations: 167.5 kB / 403.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.3974, allocations: 119.5 kB / 403.9 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.3981, allocations: 179 kB / 404 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003403/0.3985, allocations: 219.4 kB / 404.2 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.3986, allocations: 13.56 kB / 404.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.3988, allocations: 91.61 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.399, allocations: 83.67 kB / 404.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.399, allocations: 8 kB / 404.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.3992, allocations: 59.91 kB / 404.5 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3993, allocations: 47.83 kB / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.3995, allocations: 71.55 kB / 404.6 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.3999, allocations: 236.3 kB / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.3999, allocations: 0 / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3999, allocations: 0 / 404.8 MB, free: 4.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.3999, allocations: 0 / 404.8 MB, free: 4.75 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001107/0.4011, allocations: 0.5157 MB / 405.4 MB, free: 4.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.4011, allocations: 12.03 kB / 405.4 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.4012, allocations: 20.66 kB / 405.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.4016, allocations: 258.7 kB / 405.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.4016, allocations: 8 kB / 405.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.4017, allocations: 8 kB / 405.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.402, allocations: 117.9 kB / 405.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.402, allocations: 0 / 405.8 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.402, allocations: 7.984 kB / 405.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.4021, allocations: 3.938 kB / 405.8 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.4022, allocations: 55.91 kB / 405.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008354/0.4031, allocations: 0.5987 MB / 406.4 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.4034, allocations: 127.9 kB / 406.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.4036, allocations: 50.56 kB / 406.6 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/0.4036, allocations: 4 kB / 406.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.4039, allocations: 125.9 kB / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.863e-06/0.404, allocations: 0 / 406.7 MB, free: 2.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005976/0.4046, allocations: 173.3 kB / 406.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.4047, allocations: 132.6 kB / 407 MB, free: 2.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.4051, allocations: 292.9 kB / 407.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.4051, allocations: 29.7 kB / 407.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.4053, allocations: 128.3 kB / 407.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.4053, allocations: 31.64 kB / 407.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/0.4054, allocations: 29.7 kB / 407.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4056, allocations: 334.8 kB / 407.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.4057, allocations: 31.97 kB / 407.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.4058, allocations: 78 kB / 408 MB, free: 1.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.4061, allocations: 96.23 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4061, allocations: 4 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003378/0.4064, allocations: 145.9 kB / 408.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4065, allocations: 4 kB / 408.2 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4065, allocations: 0 / 408.2 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.4065, allocations: 4 kB / 408.2 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4066, allocations: 19.92 kB / 408.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.475e-05/0.4066, allocations: 3.938 kB / 408.2 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.4068, allocations: 27.92 kB / 408.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.4068, allocations: 4 kB / 408.3 MB, free: 0.957 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001465/0.407, allocations: 149.6 kB / 408.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.407, allocations: 23.66 kB / 408.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.165e-05/0.4071, allocations: 25.7 kB / 408.5 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4071, allocations: 7.938 kB / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4071, allocations: 0 / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4071, allocations: 0 / 408.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.4074, allocations: 249.5 kB / 408.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4074, allocations: 4 kB / 408.7 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.358e-05/0.4075, allocations: 7.938 kB / 408.7 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.4075, allocations: 4 kB / 408.7 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.4075, allocations: 0 / 408.7 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4075, allocations: 3.938 kB / 408.7 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4075, allocations: 4 kB / 408.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.4079, allocations: 174.6 kB / 408.9 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.366e-05/0.408, allocations: 92.83 kB / 409 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.049e-05/0.408, allocations: 8 kB / 409 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.4082, allocations: 15.86 kB / 409 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.4082, allocations: 19.92 kB / 409 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.4083, allocations: 4 kB / 409.1 MB, free: 76 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002753/0.4085, allocations: 212.5 kB / 409.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4086, allocations: 0 / 409.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.409, allocations: 43.98 kB / 409.3 MB, free: 15.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009841/0.4099, allocations: 421.3 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.4102, allocations: 91.89 kB / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4103, allocations: 0 / 409.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.4104, allocations: 52.3 kB / 409.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.4108, allocations: 57.34 kB / 409.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006963/0.4115, allocations: 340.6 kB / 410.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.4118, allocations: 0.7434 MB / 411 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.532e-05/0.4119, allocations: 21.55 kB / 411 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.4119, allocations: 15.44 kB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4119, allocations: 4 kB / 411 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Templates: time 0.006331/0.4183, allocations: 2.758 MB / 413.8 MB, free: 11.47 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches