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.001169/0.001169, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001357/0.001358, allocations: 191 kB / 18 MB, free: 5.207 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.426/1.426, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.001911, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3407, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003535/0.3443, allocations: 1.828 MB / 402.5 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.3459, allocations: 1.033 MB / 403.6 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.346, allocations: 4 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006709/0.3467, allocations: 163.5 kB / 403.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.347, allocations: 126.7 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.3475, allocations: 183.4 kB / 404 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000276/0.3478, allocations: 211.4 kB / 404.2 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.3479, allocations: 21.55 kB / 404.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.3481, allocations: 83.67 kB / 404.3 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.3482, allocations: 91.61 kB / 404.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.3483, allocations: 12 kB / 404.4 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.3484, allocations: 47.97 kB / 404.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.326e-05/0.3485, allocations: 43.84 kB / 404.5 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.722e-05/0.3486, allocations: 83.47 kB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.3489, allocations: 220.4 kB / 404.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3489, allocations: 0 / 404.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3489, allocations: 3.938 kB / 404.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3489, allocations: 0 / 404.8 MB, free: 4.73 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.0008487/0.3498, allocations: 0.5196 MB / 405.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3498, allocations: 12.03 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.3499, allocations: 20.66 kB / 405.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.3502, allocations: 270.6 kB / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3502, allocations: 0 / 405.7 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.179e-05/0.3503, allocations: 8 kB / 405.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002341/0.3505, allocations: 121.8 kB / 405.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3505, allocations: 0 / 405.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.3506, allocations: 4 kB / 405.8 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3506, allocations: 3.938 kB / 405.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001416/0.3507, allocations: 51.91 kB / 405.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/0.3513, allocations: 0.5988 MB / 406.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.3516, allocations: 123.9 kB / 406.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3517, allocations: 58.5 kB / 406.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.3518, allocations: 4 kB / 406.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.352, allocations: 117.9 kB / 406.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.352, allocations: 0 / 406.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004413/0.3525, allocations: 177.7 kB / 406.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.3525, allocations: 136.6 kB / 407 MB, free: 2.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.3528, allocations: 289 kB / 407.3 MB, free: 1.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.3529, allocations: 25.7 kB / 407.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.083e-05/0.353, allocations: 124.3 kB / 407.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.353, allocations: 35.7 kB / 407.5 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.3531, allocations: 37.7 kB / 407.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.3532, allocations: 326.8 kB / 407.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.242e-05/0.3533, allocations: 35.97 kB / 407.9 MB, free: 1.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.3534, allocations: 78 kB / 408 MB, free: 1.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.3536, allocations: 108.2 kB / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3536, allocations: 0 / 408.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002582/0.3539, allocations: 133.4 kB / 408.2 MB, free: 1.004 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3539, allocations: 4 kB / 408.2 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3539, allocations: 0 / 408.2 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3539, allocations: 4 kB / 408.2 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.493e-05/0.354, allocations: 23.86 kB / 408.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.354, allocations: 0 / 408.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3541, allocations: 27.92 kB / 408.3 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.3542, allocations: 4 kB / 408.3 MB, free: 0.9414 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.0001392/0.3543, allocations: 153.6 kB / 408.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.3543, allocations: 23.66 kB / 408.4 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.32e-05/0.3544, allocations: 25.7 kB / 408.5 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3544, allocations: 11.88 kB / 408.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3544, allocations: 0 / 408.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3544, allocations: 0 / 408.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.3547, allocations: 253.6 kB / 408.7 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3547, allocations: 3.984 kB / 408.7 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.527e-05/0.3547, allocations: 4 kB / 408.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.3547, allocations: 4 kB / 408.7 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3547, allocations: 0 / 408.7 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3547, allocations: 3.938 kB / 408.7 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3547, allocations: 4 kB / 408.7 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.355, allocations: 178.5 kB / 408.9 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.3551, allocations: 96.83 kB / 409 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.3551, allocations: 4 kB / 409 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-05/0.3552, allocations: 19.86 kB / 409 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.3553, allocations: 11.98 kB / 409.1 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.3553, allocations: 8 kB / 409.1 MB, free: 48 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.3555, allocations: 208.5 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3556, allocations: 4 kB / 409.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.3558, allocations: 39.98 kB / 409.3 MB, free: 15.8 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.000853/0.3567, allocations: 413 kB / 409.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002608/0.357, allocations: 95.83 kB / 409.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.357, allocations: 0 / 409.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3571, allocations: 56.17 kB / 409.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.3575, allocations: 48.38 kB / 409.9 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005844/0.3581, allocations: 332.7 kB / 410.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3584, allocations: 0.7434 MB / 411 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.539e-05/0.3585, allocations: 21.55 kB / 411 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.977e-05/0.3585, allocations: 19.44 kB / 411 MB, free: 14.18 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3585, allocations: 0 / 411 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Templates: time 0.005954/0.3645, allocations: 2.772 MB / 413.8 MB, free: 11.44 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