Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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.00196/0.00196, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002351/0.002351, allocations: 189.9 kB / 23.7 MB, free: 4.195 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.458/1.458, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 43.92 kB / 370.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2634, allocations: 52.18 MB / 422.5 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002871/0.2662, allocations: 1.474 MB / 424 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007598/0.267, allocations: 271.2 kB / 424.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.2671, allocations: 4 kB / 424.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.2673, allocations: 31.67 kB / 424.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.047e-05/0.2674, allocations: 15.8 kB / 424.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.2679, allocations: 115.8 kB / 424.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.2683, allocations: 263.5 kB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.2686, allocations: 145.8 kB / 424.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.2687, allocations: 83.72 kB / 424.9 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2688, allocations: 87.58 kB / 425 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2688, allocations: 24 kB / 425 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.192e-05/0.2689, allocations: 24 kB / 425.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.095e-05/0.269, allocations: 63.81 kB / 425.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.38e-05/0.2691, allocations: 75.66 kB / 425.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.2694, allocations: 247.3 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2694, allocations: 0 / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2694, allocations: 3.938 kB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2694, allocations: 4 kB / 425.4 MB, free: 11.51 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006676/0.2701, allocations: 409.1 kB / 425.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.2701, allocations: 8.031 kB / 425.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.045e-05/0.2702, allocations: 62.72 kB / 425.9 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.2703, allocations: 24.8 kB / 425.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.2706, allocations: 178.1 kB / 426.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.612e-05/0.2706, allocations: 20.88 kB / 426.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.2707, allocations: 24.38 kB / 426.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004295/0.2711, allocations: 243.1 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2711, allocations: 3.938 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.2711, allocations: 16 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2712, allocations: 4 kB / 426.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.2715, allocations: 157.7 kB / 426.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009535/0.2724, allocations: 0.6121 MB / 427.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.2727, allocations: 158.4 kB / 427.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.2728, allocations: 68.83 kB / 427.4 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.2729, allocations: 7.938 kB / 427.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.2731, allocations: 122.7 kB / 427.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.2731, allocations: 0 / 427.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004593/0.2736, allocations: 217.5 kB / 427.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.2736, allocations: 55.41 kB / 427.8 MB, free: 8.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.2738, allocations: 153.9 kB / 427.9 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.2738, allocations: 33.7 kB / 428 MB, free: 8.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.2739, allocations: 136.8 kB / 428.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.274, allocations: 63.48 kB / 428.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.2741, allocations: 74.02 kB / 428.2 MB, free: 8.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2743, allocations: 326.8 kB / 428.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.2744, allocations: 68.56 kB / 428.6 MB, free: 8.117 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.2746, allocations: 132.1 kB / 428.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.2749, allocations: 174.7 kB / 428.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2749, allocations: 0 / 428.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003908/0.2753, allocations: 254 kB / 429.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.2753, allocations: 7.938 kB / 429.2 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2753, allocations: 4 kB / 429.2 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.2753, allocations: 4 kB / 429.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.2755, allocations: 27.92 kB / 429.2 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.2755, allocations: 3.938 kB / 429.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.2756, allocations: 31.83 kB / 429.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.2756, allocations: 12 kB / 429.3 MB, free: 7.426 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001858/0.2758, allocations: 161.7 kB / 429.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.2758, allocations: 11.98 kB / 429.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003607/0.2762, allocations: 194.5 kB / 429.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.2762, allocations: 4 kB / 429.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.2762, allocations: 0 / 429.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2762, allocations: 3.984 kB / 429.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007431/0.2769, allocations: 0.5206 MB / 430.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2769, allocations: 0 / 430.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.652e-05/0.277, allocations: 23.86 kB / 430.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.277, allocations: 4 kB / 430.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.277, allocations: 4 kB / 430.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.277, allocations: 4 kB / 430.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.277, allocations: 3.938 kB / 430.2 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.2774, allocations: 291.6 kB / 430.5 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.874e-05/0.2774, allocations: 15.89 kB / 430.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.2774, allocations: 4 kB / 430.5 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.2775, allocations: 11.98 kB / 430.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/0.2776, allocations: 27.89 kB / 430.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.2776, allocations: 12 kB / 430.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.963e-05/0.2776, allocations: 93.64 kB / 430.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2776, allocations: 0 / 430.6 MB, free: 5.969 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002954/0.2779, allocations: 55.84 kB / 430.7 MB, free: 5.914 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000669/0.2786, allocations: 0.8216 MB / 431.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.2789, allocations: 163.8 kB / 431.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2789, allocations: 0 / 431.7 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.2791, allocations: 76.28 kB / 431.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.2793, allocations: 23.92 kB / 431.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.2817, allocations: 2.023 MB / 433.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.2818, allocations: 124.6 kB / 433.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.143e-05/0.2819, allocations: 25.94 kB / 433.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.282, allocations: 55.42 kB / 434 MB, free: 2.441 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.282, allocations: 0 / 434 MB, free: 2.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.3115, allocations: 4.339 MB / 438.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.15, allocations: 14.22 kB / 438.4 MB, free: 14.23 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.741741608828306]