Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001437/0.001437, allocations: 121.7 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002428/0.002428, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 59.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3594, allocations: 50.55 MB / 409.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.0031/0.3625, allocations: 1.843 MB / 411.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.3643, allocations: 1.173 MB / 412.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.159e-05/0.3644, allocations: 3.938 kB / 412.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005514/0.3649, allocations: 175 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.3653, allocations: 171.3 kB / 412.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.3656, allocations: 135.5 kB / 412.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.3659, allocations: 219.4 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.466e-05/0.366, allocations: 25.55 kB / 413 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.3661, allocations: 91.61 kB / 413.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.3662, allocations: 87.61 kB / 413.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.3663, allocations: 16 kB / 413.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3664, allocations: 51.97 kB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.3665, allocations: 55.77 kB / 413.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.253e-05/0.3666, allocations: 71.55 kB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.3668, allocations: 223 kB / 413.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3668, allocations: 0 / 413.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3668, allocations: 0 / 413.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.3669, allocations: 0 / 413.6 MB, free: 13.3 MB / 334.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.0007752/0.3676, allocations: 0.5365 MB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.3677, allocations: 12.03 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/0.3677, allocations: 20.75 kB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.368, allocations: 262.8 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.3681, allocations: 4.375 kB / 414.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.3681, allocations: 12.12 kB / 414.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.3683, allocations: 121.9 kB / 414.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.3684, allocations: 0 / 414.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.3684, allocations: 4 kB / 414.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3684, allocations: 4 kB / 414.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.3686, allocations: 47.91 kB / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000696/0.3693, allocations: 0.6065 MB / 415.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.3695, allocations: 123.9 kB / 415.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.3696, allocations: 54.56 kB / 415.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.3697, allocations: 4.078 kB / 415.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000222/0.3699, allocations: 117.9 kB / 415.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3699, allocations: 0 / 415.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004792/0.3704, allocations: 181.3 kB / 415.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.498e-05/0.3705, allocations: 132.5 kB / 415.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.3708, allocations: 293 kB / 416.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.3709, allocations: 29.7 kB / 416.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.765e-05/0.371, allocations: 132.2 kB / 416.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.371, allocations: 19.72 kB / 416.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/0.3711, allocations: 37.7 kB / 416.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3712, allocations: 342.9 kB / 416.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.78e-05/0.3713, allocations: 27.98 kB / 416.6 MB, free: 9.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.3714, allocations: 89.86 kB / 416.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001706/0.3716, allocations: 100.8 kB / 416.8 MB, free: 9.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3716, allocations: 7.875 kB / 416.8 MB, free: 9.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002594/0.3719, allocations: 145.2 kB / 417 MB, free: 9.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3719, allocations: 6.812 kB / 417 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3719, allocations: 0 / 417 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3719, allocations: 8.094 kB / 417 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.264e-05/0.372, allocations: 12 kB / 417 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.372, allocations: 0 / 417 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.3721, allocations: 19.92 kB / 417 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.3722, allocations: 4 kB / 417 MB, free: 9.488 MB / 334.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.0001202/0.3723, allocations: 153.7 kB / 417.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.354e-05/0.3723, allocations: 19.72 kB / 417.2 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.371e-05/0.3724, allocations: 25.7 kB / 417.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3724, allocations: 8 kB / 417.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3724, allocations: 0 / 417.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3724, allocations: 7.922 kB / 417.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/0.3726, allocations: 241.5 kB / 417.5 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3726, allocations: 0 / 417.5 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.676e-05/0.3727, allocations: 12.11 kB / 417.5 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3727, allocations: 4 kB / 417.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3727, allocations: 8 kB / 417.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3727, allocations: 0 / 417.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.3727, allocations: 3.938 kB / 417.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002923/0.373, allocations: 182.4 kB / 417.7 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.604e-05/0.3731, allocations: 96.91 kB / 417.8 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.3731, allocations: 4 kB / 417.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-05/0.3732, allocations: 11.98 kB / 417.8 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/0.3733, allocations: 19.92 kB / 417.8 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.3733, allocations: 8 kB / 417.8 MB, free: 8.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.3735, allocations: 216.5 kB / 418 MB, free: 8.383 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3735, allocations: 0 / 418 MB, free: 8.383 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002506/0.3738, allocations: 35.98 kB / 418.1 MB, free: 8.348 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.001031/0.3748, allocations: 408.4 kB / 418.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.3751, allocations: 104 kB / 418.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3751, allocations: 0 / 418.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.3752, allocations: 47.92 kB / 418.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.3756, allocations: 67.28 kB / 418.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006106/0.3762, allocations: 357 kB / 419 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.3765, allocations: 0.7359 MB / 419.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.604e-05/0.3766, allocations: 21.55 kB / 419.8 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.693e-05/0.3767, allocations: 23.42 kB / 419.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3767, allocations: 0 / 419.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of Templates: time 0.005578/0.3823, allocations: 2.848 MB / 422.6 MB, free: 3.852 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches