Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002026/0.002026, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002914/0.002914, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 54.73 kB / 347.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2602, allocations: 49.16 MB / 396.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003285/0.2635, allocations: 1.776 MB / 398.1 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.2655, allocations: 0.9268 MB / 399 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2657, allocations: 1.969 kB / 399 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009404/0.2666, allocations: 175.2 kB / 399.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003856/0.267, allocations: 128.9 kB / 399.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.2675, allocations: 150.8 kB / 399.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.2678, allocations: 203.6 kB / 399.7 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.2679, allocations: 17.17 kB / 399.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.2681, allocations: 91.16 kB / 399.8 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.2683, allocations: 92.86 kB / 399.9 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.2683, allocations: 10.25 kB / 399.9 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.2685, allocations: 59.95 kB / 399.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.533e-05/0.2686, allocations: 48.16 kB / 400 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.632e-05/0.2687, allocations: 56.92 kB / 400 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003669/0.269, allocations: 222.1 kB / 400.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.269, allocations: 0 / 400.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2691, allocations: 0 / 400.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2691, allocations: 0 / 400.3 MB, free: 6.742 MB / 318.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.0007802/0.2698, allocations: 471.2 kB / 400.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.2699, allocations: 17.83 kB / 400.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.2699, allocations: 39.22 kB / 400.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.549e-05/0.27, allocations: 22.14 kB / 400.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.2703, allocations: 197.8 kB / 401 MB, free: 6.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.2703, allocations: 11.92 kB / 401 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.161e-05/0.2703, allocations: 9.453 kB / 401 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.2705, allocations: 112.7 kB / 401.1 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2706, allocations: 4 kB / 401.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.2706, allocations: 10.42 kB / 401.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2706, allocations: 1.062 kB / 401.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.2707, allocations: 51.39 kB / 401.2 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006945/0.2714, allocations: 0.5617 MB / 401.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.2717, allocations: 126.3 kB / 401.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.2718, allocations: 48.56 kB / 401.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2719, allocations: 2.312 kB / 401.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.2721, allocations: 128.8 kB / 402.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.2721, allocations: 0 / 402.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004749/0.2726, allocations: 177.8 kB / 402.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/0.2726, allocations: 109.8 kB / 402.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/0.2729, allocations: 288.4 kB / 402.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.2729, allocations: 28.08 kB / 402.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.273, allocations: 125.9 kB / 402.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.273, allocations: 34.98 kB / 402.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.2731, allocations: 36.05 kB / 402.8 MB, free: 4.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.022e-05/0.2732, allocations: 331.6 kB / 403.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.588e-05/0.2732, allocations: 40 kB / 403.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.2733, allocations: 104.9 kB / 403.3 MB, free: 4.203 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.2735, allocations: 93.64 kB / 403.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2735, allocations: 0 / 403.4 MB, free: 4.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002433/0.2737, allocations: 153 kB / 403.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.2738, allocations: 5.438 kB / 403.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2738, allocations: 1.281 kB / 403.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2738, allocations: 2.312 kB / 403.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.784e-05/0.2739, allocations: 18.19 kB / 403.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.2739, allocations: 2.031 kB / 403.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.274, allocations: 26.97 kB / 403.6 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.274, allocations: 4.688 kB / 403.6 MB, free: 4.035 MB / 318.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 9.812e-05/0.2741, allocations: 148.1 kB / 403.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.2742, allocations: 20.62 kB / 403.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.2744, allocations: 110.8 kB / 403.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2744, allocations: 2.125 kB / 403.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2744, allocations: 1.062 kB / 403.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2744, allocations: 6.047 kB / 403.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001918/0.2746, allocations: 202.6 kB / 404.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2746, allocations: 1.188 kB / 404.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.543e-05/0.2746, allocations: 10.83 kB / 404.1 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2746, allocations: 6.156 kB / 404.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.2746, allocations: 10.06 kB / 404.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2746, allocations: 2.219 kB / 404.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2747, allocations: 1.781 kB / 404.1 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.2749, allocations: 181.6 kB / 404.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.275, allocations: 24.09 kB / 404.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.275, allocations: 2.953 kB / 404.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.986e-05/0.2751, allocations: 14.05 kB / 404.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.2752, allocations: 23.45 kB / 404.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.2752, allocations: 6.516 kB / 404.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.2754, allocations: 214 kB / 404.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2754, allocations: 0 / 404.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.2757, allocations: 41.12 kB / 404.6 MB, free: 3.344 MB / 318.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 (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.001841/0.2775, allocations: 1.055 MB / 405.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002778/0.2778, allocations: 101.5 kB / 405.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2778, allocations: 0 / 405.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.2779, allocations: 56.12 kB / 405.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.2782, allocations: 58.84 kB / 405.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.2803, allocations: 2.179 MB / 408.1 MB, free: 0.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.2804, allocations: 122.3 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.921e-05/0.2805, allocations: 26.03 kB / 408.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.186e-05/0.2806, allocations: 57.02 kB / 408.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2806, allocations: 1.188 kB / 408.3 MB, free: 0.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03295/0.3136, allocations: 5.868 MB / 414.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.77, allocations: 1.094 kB / 414.1 MB, free: 13.74 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv. Warning: Get data of variable table.y from file Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.355514000169933]