Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.557/1.557, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.494e-06/2.494e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.061e-05/4.31e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.0043/0.004343, allocations: 1.835 MB / 274.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.006702, allocations: 1.114 MB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.006845, allocations: 7.938 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007831/0.007628, allocations: 167.4 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005461/0.008174, allocations: 183.2 kB / 275.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.00867, allocations: 139.5 kB / 275.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003669/0.009037, allocations: 215.3 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.009155, allocations: 17.73 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.009419, allocations: 115.7 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.009593, allocations: 79.78 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.009627, allocations: 12 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.009817, allocations: 59.89 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.009923, allocations: 59.81 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.985e-05/0.01002, allocations: 43.86 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004543/0.01048, allocations: 223.2 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.01048, allocations: 0 / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01048, allocations: 0 / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.01049, allocations: 0 / 276.5 MB, free: 13.56 MB / 266.7 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.001123/0.01161, allocations: 474.6 kB / 277 MB, free: 13.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.01165, allocations: 8.031 kB / 277 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.01176, allocations: 32.73 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.01218, allocations: 208.9 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.01221, allocations: 8.375 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.01223, allocations: 4.375 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.01252, allocations: 113.6 kB / 277.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.01253, allocations: 3.938 kB / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.01255, allocations: 4 kB / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.01256, allocations: 0 / 277.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.01274, allocations: 51.91 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008042/0.01355, allocations: 0.5283 MB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.01387, allocations: 127.8 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.014, allocations: 50.5 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.01403, allocations: 4 kB / 278.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.01431, allocations: 121.8 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.01431, allocations: 0 / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005722/0.01489, allocations: 197.9 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.976e-05/0.01499, allocations: 102.8 kB / 278.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003941/0.01538, allocations: 301.8 kB / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.01541, allocations: 29.7 kB / 278.9 MB, free: 11.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.01552, allocations: 124.2 kB / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.01557, allocations: 31.83 kB / 279 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.01564, allocations: 33.66 kB / 279.1 MB, free: 10.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.01584, allocations: 334.8 kB / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.01596, allocations: 27.98 kB / 279.4 MB, free: 10.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.01613, allocations: 110.8 kB / 279.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.01636, allocations: 104.2 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.01636, allocations: 0 / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004715/0.01683, allocations: 149.5 kB / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.01685, allocations: 6.812 kB / 279.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.01685, allocations: 3.938 kB / 279.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.661e-05/0.01689, allocations: 4.094 kB / 279.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.752e-05/0.01699, allocations: 19.98 kB / 279.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.01699, allocations: 0 / 279.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.01712, allocations: 11.98 kB / 279.8 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.01714, allocations: 8 kB / 279.8 MB, free: 10 MB / 266.7 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.0001657/0.0173, allocations: 149.7 kB / 280 MB, free: 9.844 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.01736, allocations: 24.05 kB / 280 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002915/0.01765, allocations: 119.4 kB / 280.1 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01765, allocations: 0 / 280.1 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.01767, allocations: 12 kB / 280.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.01767, allocations: 3.984 kB / 280.1 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.01794, allocations: 181.1 kB / 280.3 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.01794, allocations: 4 kB / 280.3 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.01798, allocations: 7.938 kB / 280.3 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.01798, allocations: 7.938 kB / 280.3 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.018, allocations: 3.984 kB / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.018, allocations: 0 / 280.3 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.01801, allocations: 4 kB / 280.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003925/0.0184, allocations: 198.4 kB / 280.5 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.01844, allocations: 23.89 kB / 280.6 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.01848, allocations: 7.938 kB / 280.6 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.01859, allocations: 11.98 kB / 280.6 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.01866, allocations: 11.98 kB / 280.6 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.75e-05/0.01867, allocations: 4 kB / 280.6 MB, free: 9.168 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000274/0.01895, allocations: 221.2 kB / 280.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01895, allocations: 0 / 280.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002895/0.01924, allocations: 39.94 kB / 280.8 MB, free: 8.914 MB / 266.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.002064/0.0213, allocations: 442.7 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.02163, allocations: 91.84 kB / 281.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.02164, allocations: 4 kB / 281.4 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.0218, allocations: 55.84 kB / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.02222, allocations: 64.05 kB / 281.5 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008457/0.02307, allocations: 363.2 kB / 281.8 MB, free: 8.062 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001727/0.02324, allocations: 127.6 kB / 282 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.02334, allocations: 21.62 kB / 282 MB, free: 7.895 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.564e-05/0.02342, allocations: 24.48 kB / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.02342, allocations: 4 kB / 282 MB, free: 7.863 MB / 266.7 MB Notification: Performance of Templates: time 0.008016/0.03144, allocations: 2.906 MB / 284.9 MB, free: 4.992 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.518711557961069]