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.001042/0.001042, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0009168/0.0009168, allocations: 149.1 kB / 23.93 MB, free: 0.6289 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.9663/0.9663, allocations: 173.4 MB / 200.4 MB, free: 9.43 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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.89e-05, allocations: 4.672 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003056/0.003075, allocations: 1.778 MB / 320.2 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.004682, allocations: 0.9934 MB / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.004803, allocations: 0 / 321.2 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006776/0.00548, allocations: 171.4 kB / 321.4 MB, free: 3.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003148/0.005795, allocations: 139.3 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.006231, allocations: 174 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.006528, allocations: 215.3 kB / 321.9 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.006646, allocations: 17.72 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.006851, allocations: 111.7 kB / 322 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.006963, allocations: 75.78 kB / 322.1 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.006988, allocations: 12 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.007101, allocations: 63.89 kB / 322.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.437e-05/0.007165, allocations: 47.84 kB / 322.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.617e-05/0.007222, allocations: 47.84 kB / 322.2 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.007472, allocations: 219.2 kB / 322.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.007474, allocations: 0 / 322.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.007476, allocations: 4 kB / 322.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.00748, allocations: 0 / 322.5 MB, free: 2.289 MB / 282.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.0006511/0.008131, allocations: 466 kB / 322.9 MB, free: 1.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.008172, allocations: 8.922 kB / 322.9 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.008208, allocations: 38.75 kB / 323 MB, free: 1.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.00825, allocations: 20.84 kB / 323 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.008495, allocations: 204.8 kB / 323.2 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.00851, allocations: 4.125 kB / 323.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.008523, allocations: 8 kB / 323.2 MB, free: 1.484 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.008703, allocations: 113 kB / 323.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.008711, allocations: 0 / 323.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.008723, allocations: 4 kB / 323.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/0.00873, allocations: 4 kB / 323.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.423e-05/0.008824, allocations: 47.91 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004903/0.009315, allocations: 0.5667 MB / 323.9 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.009486, allocations: 123.8 kB / 324 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.009547, allocations: 46.56 kB / 324.1 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.009573, allocations: 4 kB / 324.1 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/0.009772, allocations: 121.9 kB / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.009774, allocations: 0 / 324.2 MB, free: 340 kB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003567/0.01013, allocations: 177.5 kB / 324.4 MB, free: 156 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.01019, allocations: 106.8 kB / 324.5 MB, free: 24 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.01044, allocations: 297.6 kB / 324.8 MB, free: 15.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.01046, allocations: 29.7 kB / 324.8 MB, free: 15.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.931e-05/0.01053, allocations: 120.4 kB / 324.9 MB, free: 15.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.01056, allocations: 35.73 kB / 325 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.0106, allocations: 25.72 kB / 325 MB, free: 15.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.0107, allocations: 334.8 kB / 325.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.669e-05/0.01076, allocations: 31.98 kB / 325.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.911e-05/0.01085, allocations: 110.8 kB / 325.5 MB, free: 15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.01097, allocations: 108.7 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.01097, allocations: 0 / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000164/0.01113, allocations: 141.5 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.01115, allocations: 4 kB / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01115, allocations: 0 / 325.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.01117, allocations: 16.06 kB / 325.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.308e-05/0.01123, allocations: 15.94 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.01124, allocations: 3.938 kB / 325.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.148e-05/0.0113, allocations: 19.88 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.01131, allocations: 8 kB / 325.8 MB, free: 14.67 MB / 298.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.0001019/0.01141, allocations: 149.6 kB / 325.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.01143, allocations: 19.86 kB / 325.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.0116, allocations: 119.4 kB / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.01161, allocations: 0 / 326 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.01161, allocations: 8 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.01162, allocations: 7.922 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.01177, allocations: 188.7 kB / 326.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.01178, allocations: 0 / 326.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.329e-05/0.0118, allocations: 11.94 kB / 326.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.0118, allocations: 3.984 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.01181, allocations: 4 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.01182, allocations: 0 / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01182, allocations: 128 / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.01202, allocations: 197.5 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.01205, allocations: 31.78 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.01207, allocations: 4 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.701e-05/0.01212, allocations: 11.98 kB / 326.5 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.01217, allocations: 27.84 kB / 326.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.01219, allocations: 7.984 kB / 326.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001371/0.01233, allocations: 209.2 kB / 326.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01233, allocations: 4 kB / 326.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001959/0.01252, allocations: 32 kB / 326.8 MB, free: 13.57 MB / 298.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.001105/0.01363, allocations: 1.062 MB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001968/0.01382, allocations: 91.89 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.01382, allocations: 0 / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.649e-05/0.0139, allocations: 47.92 kB / 328 MB, free: 12.53 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002453/0.01415, allocations: 55.61 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.01609, allocations: 2.188 MB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.935e-05/0.01618, allocations: 119.6 kB / 330.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.192e-05/0.01625, allocations: 29.56 kB / 330.4 MB, free: 10 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.296e-05/0.01633, allocations: 56.48 kB / 330.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01633, allocations: 0 / 330.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.03974, allocations: 5.999 MB / 336.4 MB, free: 4.008 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.043/7.083, allocations: 11.25 kB / 336.4 MB, free: 4 MB / 298.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199283 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/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) [Timeout 660] "Error: Could not read variable table.y in file Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.046679792925715]