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.001423/0.001423, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001473/0.001473, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.478/1.478, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001577/0.001577, allocations: 55.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.293, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003697/0.2966, allocations: 1.859 MB / 424.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.2985, allocations: 1.06 MB / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.2986, allocations: 4 kB / 425.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006759/0.2993, allocations: 167.5 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003342/0.2997, allocations: 135.5 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.3001, allocations: 174.4 kB / 426 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.3004, allocations: 207.4 kB / 426.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3006, allocations: 9.75 kB / 426.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.3007, allocations: 91.61 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001579/0.3009, allocations: 91.66 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.3009, allocations: 8 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.3011, allocations: 67.91 kB / 426.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.965e-05/0.3012, allocations: 43.83 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.3013, allocations: 83.53 kB / 426.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003759/0.3017, allocations: 219.5 kB / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3017, allocations: 0 / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3017, allocations: 0 / 426.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3017, allocations: 0 / 426.8 MB, free: 10.42 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.000958/0.3026, allocations: 462.7 kB / 427.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3027, allocations: 12.03 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.3027, allocations: 42.73 kB / 427.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.773e-05/0.3028, allocations: 24.73 kB / 427.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.3031, allocations: 204.7 kB / 427.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.3031, allocations: 4 kB / 427.5 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.3032, allocations: 4 kB / 427.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.3034, allocations: 117.9 kB / 427.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3034, allocations: 4 kB / 427.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3034, allocations: 3.984 kB / 427.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3034, allocations: 0 / 427.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.3036, allocations: 51.91 kB / 427.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007091/0.3043, allocations: 0.5784 MB / 428.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.3046, allocations: 115.9 kB / 428.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.3047, allocations: 54.55 kB / 428.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.841e-05/0.3047, allocations: 7.938 kB / 428.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.3049, allocations: 113.9 kB / 428.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.3049, allocations: 0 / 428.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004753/0.3054, allocations: 181.4 kB / 428.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.217e-05/0.3055, allocations: 136.5 kB / 428.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.3058, allocations: 288.9 kB / 429.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3058, allocations: 33.7 kB / 429.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3059, allocations: 124.3 kB / 429.3 MB, free: 7.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.306, allocations: 23.84 kB / 429.4 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/0.306, allocations: 33.84 kB / 429.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3062, allocations: 330.8 kB / 429.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.661e-05/0.3063, allocations: 35.98 kB / 429.7 MB, free: 7.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.3064, allocations: 82.42 kB / 429.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.3066, allocations: 104.2 kB / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3066, allocations: 0 / 429.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002909/0.3069, allocations: 145.4 kB / 430.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3069, allocations: 8 kB / 430.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.3069, allocations: 0 / 430.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.307, allocations: 8.031 kB / 430.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.098e-05/0.307, allocations: 15.94 kB / 430.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3071, allocations: 4 kB / 430.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3072, allocations: 15.94 kB / 430.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.3072, allocations: 8 kB / 430.1 MB, free: 6.781 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.0001462/0.3073, allocations: 138.7 kB / 430.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.025e-05/0.3074, allocations: 23.86 kB / 430.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002493/0.3076, allocations: 115.3 kB / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3076, allocations: 3.938 kB / 430.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3076, allocations: 0 / 430.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3076, allocations: 8.172 kB / 430.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.3079, allocations: 212.6 kB / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3079, allocations: 0 / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.977e-05/0.3079, allocations: 12 kB / 430.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.3079, allocations: 3.984 kB / 430.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3079, allocations: 4 kB / 430.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.3079, allocations: 3.938 kB / 430.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3079, allocations: 0 / 430.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003954/0.3083, allocations: 182.5 kB / 430.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.3084, allocations: 15.91 kB / 430.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.3084, allocations: 7.984 kB / 430.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.3085, allocations: 15.92 kB / 430.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.3086, allocations: 15.98 kB / 430.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.3086, allocations: 4 kB / 430.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.3089, allocations: 220.4 kB / 431.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3089, allocations: 0 / 431.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002772/0.3091, allocations: 43.88 kB / 431.1 MB, free: 5.688 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.00206/0.3112, allocations: 1.024 MB / 432.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002856/0.3115, allocations: 83.89 kB / 432.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3115, allocations: 0 / 432.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.3116, allocations: 52.11 kB / 432.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004035/0.312, allocations: 55.84 kB / 432.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.3149, allocations: 2.16 MB / 434.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.3153, allocations: 0.7358 MB / 435.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.311e-05/0.3154, allocations: 25.47 kB / 435.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3155, allocations: 59.41 kB / 435.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3155, allocations: 0 / 435.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.3483, allocations: 5.325 MB / 440.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.43, allocations: 5.703 kB / 440.7 MB, free: 12.24 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/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: 14.08506049800053]