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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 142 kB / 24.97 MB, free: 8.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.94/0.94, allocations: 173.3 MB / 201.5 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 179] 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=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.157e-05/1.279e-05, allocations: 2.312 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002237/0.00225, allocations: 1.852 MB / 269.9 MB, free: 4.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.00349, allocations: 1.009 MB / 270.9 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.003572, allocations: 4 kB / 270.9 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004476/0.004019, allocations: 171.4 kB / 271.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.004215, allocations: 131.4 kB / 271.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.004466, allocations: 183.4 kB / 271.4 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000208/0.004674, allocations: 211.3 kB / 271.6 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.004847, allocations: 5.812 kB / 271.6 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.005076, allocations: 115.7 kB / 271.7 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.005205, allocations: 79.78 kB / 271.8 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.005231, allocations: 12 kB / 271.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.005388, allocations: 63.83 kB / 271.9 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.82e-05/0.005466, allocations: 51.78 kB / 271.9 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.001e-05/0.005526, allocations: 43.84 kB / 272 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.005813, allocations: 167.4 kB / 272.1 MB, free: 2.617 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.005817, allocations: 0 / 272.1 MB, free: 2.617 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.005819, allocations: 4 kB / 272.1 MB, free: 2.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.005825, allocations: 0 / 272.1 MB, free: 2.613 MB / 250.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.0006463/0.006471, allocations: 0.5555 MB / 272.7 MB, free: 2.016 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.006508, allocations: 12.92 kB / 272.7 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.006573, allocations: 20.84 kB / 272.7 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.00681, allocations: 212.4 kB / 272.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.006827, allocations: 4.375 kB / 272.9 MB, free: 1.742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.006842, allocations: 11.94 kB / 272.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.007014, allocations: 108.3 kB / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.007023, allocations: 0 / 273 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.007034, allocations: 4 kB / 273.1 MB, free: 1.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.007041, allocations: 0 / 273.1 MB, free: 1.598 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.099e-05/0.007102, allocations: 31.92 kB / 273.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005002/0.007603, allocations: 0.7151 MB / 273.8 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.007751, allocations: 117.4 kB / 273.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.677e-05/0.007797, allocations: 43.05 kB / 274 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.007816, allocations: 4 kB / 274 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001477/0.007963, allocations: 127.9 kB / 274.1 MB, free: 448 kB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.007964, allocations: 0 / 274.1 MB, free: 448 kB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002478/0.008212, allocations: 137.5 kB / 274.2 MB, free: 304 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.008262, allocations: 110.8 kB / 274.3 MB, free: 168 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.008461, allocations: 288.3 kB / 274.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.008484, allocations: 33.7 kB / 274.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/0.008562, allocations: 170.8 kB / 274.8 MB, free: 15.65 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.008592, allocations: 35.73 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.376e-05/0.008636, allocations: 43.3 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.008752, allocations: 0.504 MB / 275.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.636e-05/0.008788, allocations: 16.48 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.804e-05/0.008856, allocations: 99.81 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.391e-05/0.00894, allocations: 90.52 kB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.008942, allocations: 0 / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001335/0.009076, allocations: 117.5 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.00909, allocations: 8 kB / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.009094, allocations: 0 / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.009107, allocations: 0 / 275.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.063e-05/0.009178, allocations: 20 kB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.009185, allocations: 12.02 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.47e-05/0.00924, allocations: 15.89 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.009249, allocations: 7.938 kB / 275.8 MB, free: 14.61 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 8.491e-05/0.009334, allocations: 172.4 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.00936, allocations: 27.86 kB / 276 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001451/0.009505, allocations: 99.44 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.009508, allocations: 4 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.009511, allocations: 0 / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.009516, allocations: 3.984 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.009661, allocations: 192.6 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.009663, allocations: 4 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.283e-05/0.009686, allocations: 8 kB / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.009688, allocations: 0 / 276.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.009699, allocations: 8 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.0097, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.009702, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.00986, allocations: 183.5 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/0.00988, allocations: 19.86 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.009904, allocations: 8 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.743e-05/0.009952, allocations: 11.98 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.01, allocations: 19.97 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.01001, allocations: 4 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001104/0.01012, allocations: 205.1 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01012, allocations: 0 / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001796/0.0103, allocations: 43.81 kB / 276.8 MB, free: 13.54 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.0007969/0.0111, allocations: 396.3 kB / 277.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.01125, allocations: 67.59 kB / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01126, allocations: 0 / 277.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.105e-05/0.01132, allocations: 47.59 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.01157, allocations: 67.59 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004375/0.012, allocations: 322 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.319e-05/0.01205, allocations: 75.98 kB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.345e-05/0.0121, allocations: 25.83 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.01214, allocations: 24.5 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.01214, allocations: 4 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of Templates: time 0.004717/0.01686, allocations: 2.873 MB / 280.6 MB, free: 9.773 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.859889159910381]