Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001639/0.001639, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002165/0.002165, allocations: 182 kB / 23.72 MB, free: 4.699 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.397/1.397, allocations: 225.6 MB / 252.5 MB, free: 13.03 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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 47.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2694, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003042/0.2724, allocations: 1.675 MB / 424.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007098/0.2731, allocations: 299.1 kB / 424.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.085e-05/0.2732, allocations: 4 kB / 424.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.2734, allocations: 27.67 kB / 424.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.992e-05/0.2734, allocations: 19.81 kB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.2738, allocations: 127.8 kB / 424.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.2742, allocations: 275.5 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.2745, allocations: 151.5 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.2746, allocations: 95.7 kB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.2747, allocations: 99.53 kB / 425.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.2748, allocations: 28 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.995e-05/0.2748, allocations: 35.98 kB / 425.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.525e-05/0.2749, allocations: 55.84 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.275, allocations: 99.52 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.2754, allocations: 271.2 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2754, allocations: 0 / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2754, allocations: 0 / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.2754, allocations: 0 / 425.8 MB, free: 11.36 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007516/0.2761, allocations: 425.1 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2762, allocations: 16.03 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.2762, allocations: 58.72 kB / 426.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.2763, allocations: 24.8 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.2766, allocations: 174.2 kB / 426.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.2767, allocations: 24.81 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.852e-05/0.2767, allocations: 32.36 kB / 426.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.2772, allocations: 273.7 kB / 426.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.2772, allocations: 3.938 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.612e-05/0.2772, allocations: 12 kB / 426.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.2773, allocations: 4 kB / 426.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.2776, allocations: 169.6 kB / 427 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2788, allocations: 0.9327 MB / 428 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.2791, allocations: 165.3 kB / 428.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.2793, allocations: 72.45 kB / 428.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.2793, allocations: 7.984 kB / 428.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.2795, allocations: 140.5 kB / 428.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.253e-06/0.2795, allocations: 0 / 428.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004537/0.28, allocations: 221.3 kB / 428.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.28, allocations: 89.23 kB / 428.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2802, allocations: 161 kB / 428.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2802, allocations: 33.7 kB / 428.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.2803, allocations: 144.8 kB / 429 MB, free: 7.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.2804, allocations: 63.53 kB / 429 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.2805, allocations: 81.67 kB / 429.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2806, allocations: 326.8 kB / 429.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.2808, allocations: 59.97 kB / 429.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.281, allocations: 144.5 kB / 429.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002818/0.2812, allocations: 196.8 kB / 429.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2812, allocations: 0 / 429.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003995/0.2816, allocations: 257.3 kB / 430.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.2817, allocations: 8 kB / 430.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2817, allocations: 0 / 430.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.2817, allocations: 4 kB / 430.1 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.2818, allocations: 39.86 kB / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.2818, allocations: 7.984 kB / 430.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.2819, allocations: 27.78 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.282, allocations: 16.28 kB / 430.2 MB, free: 6.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001846/0.2822, allocations: 169.7 kB / 430.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.2822, allocations: 15.91 kB / 430.4 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003748/0.2826, allocations: 186.4 kB / 430.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2826, allocations: 4 kB / 430.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2826, allocations: 3.938 kB / 430.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.2826, allocations: 3.984 kB / 430.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008124/0.2834, allocations: 0.5665 MB / 431.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2834, allocations: 0 / 431.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.2835, allocations: 15.98 kB / 431.1 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-06/0.2835, allocations: 7.938 kB / 431.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.2835, allocations: 11.88 kB / 431.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.2835, allocations: 4 kB / 431.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.2835, allocations: 7.984 kB / 431.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.2839, allocations: 288.6 kB / 431.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.403e-05/0.2839, allocations: 15.84 kB / 431.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.284, allocations: 11.94 kB / 431.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.862e-05/0.2841, allocations: 4 kB / 431.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.433e-05/0.2841, allocations: 23.95 kB / 431.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2842, allocations: 8 kB / 431.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.688e-05/0.2842, allocations: 99.27 kB / 431.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2842, allocations: 0 / 431.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.2846, allocations: 51.89 kB / 431.7 MB, free: 5.125 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000705/0.2853, allocations: 0.8454 MB / 432.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003466/0.2856, allocations: 164.2 kB / 432.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2856, allocations: 4.188 kB / 432.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.2858, allocations: 83.84 kB / 432.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.2861, allocations: 27.2 kB / 432.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.2884, allocations: 2.087 MB / 434.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.2888, allocations: 0.7441 MB / 435.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.335e-05/0.2889, allocations: 21.94 kB / 435.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.289, allocations: 63.42 kB / 435.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.289, allocations: 0 / 435.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.3194, allocations: 4.02 MB / 439.7 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.41, allocations: 10.09 kB / 439.7 MB, free: 13 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.97837302300104]