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.001352/0.001352, allocations: 115.6 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.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.00154/0.00154, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 47.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2469, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003262/0.2502, allocations: 1.872 MB / 433 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.2523, allocations: 1.204 MB / 434.2 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.2524, allocations: 4 kB / 434.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006434/0.253, allocations: 171.5 kB / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004148/0.2534, allocations: 171.3 kB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.2538, allocations: 147.5 kB / 434.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.2541, allocations: 219.3 kB / 434.9 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.2542, allocations: 17.73 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2543, allocations: 95.56 kB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.2545, allocations: 91.59 kB / 435.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.2545, allocations: 12 kB / 435.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.2547, allocations: 67.89 kB / 435.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.621e-05/0.2547, allocations: 51.83 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.154e-05/0.2548, allocations: 71.55 kB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003471/0.2552, allocations: 231.5 kB / 435.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2552, allocations: 0 / 435.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2552, allocations: 3.938 kB / 435.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2552, allocations: 0 / 435.5 MB, free: 2.457 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.0009172/0.2561, allocations: 478.6 kB / 436 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2562, allocations: 8.031 kB / 436 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.916e-05/0.2562, allocations: 34.75 kB / 436 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.2563, allocations: 24.8 kB / 436.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.2566, allocations: 201.2 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2566, allocations: 4.375 kB / 436.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.2566, allocations: 11.94 kB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.2569, allocations: 120.1 kB / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2569, allocations: 0 / 436.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.2569, allocations: 4 kB / 436.4 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.2569, allocations: 4 kB / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.2571, allocations: 47.91 kB / 436.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007296/0.2578, allocations: 0.5823 MB / 437 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.2581, allocations: 123.9 kB / 437.1 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2582, allocations: 46.56 kB / 437.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2582, allocations: 0 / 437.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.2585, allocations: 129.8 kB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2585, allocations: 4 kB / 437.3 MB, free: 468 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004745/0.2589, allocations: 169.4 kB / 437.5 MB, free: 292 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.259, allocations: 136.5 kB / 437.6 MB, free: 124 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.2594, allocations: 301 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.2594, allocations: 29.7 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.2595, allocations: 124.4 kB / 438.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.939e-05/0.2596, allocations: 31.86 kB / 438.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.2596, allocations: 33.72 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2598, allocations: 334.8 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.2599, allocations: 32.48 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.26, allocations: 77.98 kB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.2602, allocations: 100.2 kB / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2602, allocations: 0 / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002842/0.2605, allocations: 145.4 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2605, allocations: 8.094 kB / 438.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2605, allocations: 7.938 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.2605, allocations: 4 kB / 438.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.646e-05/0.2606, allocations: 15.98 kB / 438.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.2606, allocations: 3.938 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.2607, allocations: 23.86 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.2607, allocations: 4 kB / 438.9 MB, free: 14.8 MB / 350.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.0001421/0.2609, allocations: 142.5 kB / 439 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.2609, allocations: 23.86 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.2612, allocations: 115.3 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.2612, allocations: 7.984 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2612, allocations: 192 / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2612, allocations: 3.938 kB / 439.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.2614, allocations: 220.6 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2614, allocations: 0 / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.804e-05/0.2615, allocations: 4 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2615, allocations: 4 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.2615, allocations: 4 kB / 439.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2615, allocations: 8 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2615, allocations: 0 / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.2618, allocations: 182.5 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.2618, allocations: 23.84 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.2619, allocations: 0 / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.262, allocations: 19.98 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.262, allocations: 19.91 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.262, allocations: 4 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.2623, allocations: 216.5 kB / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2623, allocations: 0 / 439.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.2625, allocations: 32 kB / 439.9 MB, free: 13.7 MB / 350.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.002046/0.2646, allocations: 1.038 MB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002743/0.2649, allocations: 87.83 kB / 441 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2649, allocations: 4 kB / 441 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.265, allocations: 48.11 kB / 441.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.2654, allocations: 62.03 kB / 441.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.2682, allocations: 2.181 MB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.2687, allocations: 0.7398 MB / 444 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.927e-05/0.2688, allocations: 21.98 kB / 444.1 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.2689, allocations: 63.34 kB / 444.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2689, allocations: 0 / 444.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0341/0.303, allocations: 5.423 MB / 449.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.17, allocations: 4.734 kB / 449.5 MB, free: 4.098 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.744376396000007]