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.0007035/0.0007035, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0007572/0.0007572, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.228/1.228, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002224, allocations: 8 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07238/0.07262, allocations: 50.4 MB / 352.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001772/0.0744, allocations: 1.547 MB / 354 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.07581, allocations: 0.9823 MB / 355 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.858e-05/0.0759, allocations: 0 / 355 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005044/0.07641, allocations: 162.8 kB / 355.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.07667, allocations: 111.6 kB / 355.3 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.07706, allocations: 155.7 kB / 355.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.07729, allocations: 203.4 kB / 355.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.048e-05/0.07739, allocations: 29.48 kB / 355.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.0775, allocations: 67.7 kB / 355.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.07763, allocations: 79.61 kB / 355.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.07766, allocations: 4 kB / 355.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.07777, allocations: 43.97 kB / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.292e-05/0.07785, allocations: 47.77 kB / 355.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.055e-05/0.07793, allocations: 93.23 kB / 356 MB, free: 192 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.07812, allocations: 156 kB / 356.1 MB, free: 36 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.07813, allocations: 0 / 356.1 MB, free: 36 kB / 286.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.07814, allocations: 0 / 356.1 MB, free: 36 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.07814, allocations: 0 / 356.1 MB, free: 36 kB / 286.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.0006706/0.07882, allocations: 0.5119 MB / 356.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.07886, allocations: 8.031 kB / 356.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.527e-05/0.07891, allocations: 16.75 kB / 356.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.07918, allocations: 266.8 kB / 356.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.0792, allocations: 7.938 kB / 356.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.07923, allocations: 12 kB / 357 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000206/0.07944, allocations: 109.7 kB / 357.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.07946, allocations: 3.984 kB / 357.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.07948, allocations: 11.94 kB / 357.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.07949, allocations: 0 / 357.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001488/0.07964, allocations: 51.97 kB / 357.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005614/0.08022, allocations: 0.6065 MB / 357.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.08047, allocations: 131.9 kB / 357.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.08058, allocations: 46.56 kB / 357.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.08061, allocations: 8 kB / 357.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.08082, allocations: 117.9 kB / 358 MB, free: 13.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/0.08084, allocations: 0 / 358 MB, free: 13.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004168/0.08126, allocations: 185.4 kB / 358.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.08133, allocations: 136.4 kB / 358.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/0.0816, allocations: 292.8 kB / 358.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.08163, allocations: 29.7 kB / 358.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.08171, allocations: 120.4 kB / 358.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.08174, allocations: 27.77 kB / 358.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.08178, allocations: 21.72 kB / 358.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.08188, allocations: 330.8 kB / 359.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.043e-05/0.08198, allocations: 39.95 kB / 359.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.0821, allocations: 81.98 kB / 359.3 MB, free: 12.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001722/0.08229, allocations: 100.2 kB / 359.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.0823, allocations: 4 kB / 359.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002597/0.08256, allocations: 145.2 kB / 359.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.08259, allocations: 8 kB / 359.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.0826, allocations: 0 / 359.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.856e-06/0.08261, allocations: 4.094 kB / 359.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.815e-05/0.0827, allocations: 15.94 kB / 359.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.08271, allocations: 7.938 kB / 359.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.08283, allocations: 19.89 kB / 359.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.08285, allocations: 8 kB / 359.6 MB, free: 12.25 MB / 302.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.0001093/0.08296, allocations: 142.3 kB / 359.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.199e-05/0.083, allocations: 19.81 kB / 359.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.1e-05/0.08306, allocations: 33.69 kB / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.08307, allocations: 0 / 359.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.08308, allocations: 7.938 kB / 359.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.08309, allocations: 7.984 kB / 359.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.08329, allocations: 233.5 kB / 360 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.0833, allocations: 0 / 360 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.913e-05/0.08334, allocations: 11.94 kB / 360 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.08335, allocations: 3.984 kB / 360 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.08336, allocations: 4 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.08337, allocations: 4 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.08338, allocations: 3.938 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.08368, allocations: 190.4 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.08374, allocations: 92.91 kB / 360.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.08378, allocations: 8 kB / 360.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.08389, allocations: 15.98 kB / 360.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.08396, allocations: 19.92 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.08398, allocations: 4 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.08417, allocations: 212.5 kB / 360.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08418, allocations: 0 / 360.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002579/0.08444, allocations: 39.89 kB / 360.6 MB, free: 11.11 MB / 302.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.0008717/0.08532, allocations: 428 kB / 361 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.08558, allocations: 91.83 kB / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.08559, allocations: 0 / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.08573, allocations: 55.98 kB / 361.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.08609, allocations: 48.45 kB / 361.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005494/0.08665, allocations: 413.8 kB / 361.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.0869, allocations: 0.7322 MB / 362.3 MB, free: 9.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.08695, allocations: 23.44 kB / 362.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.08696, allocations: 4 kB / 362.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of Templates: time 0.004414/0.09138, allocations: 2.827 MB / 365.2 MB, free: 6.617 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/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