Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001351/0.001351, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001437/0.001437, allocations: 215.3 kB / 23.73 MB, free: 4.156 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.406/1.406, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 47.92 kB / 377.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2485, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003316/0.2519, allocations: 1.702 MB / 432.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007663/0.2526, allocations: 287.2 kB / 433 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.711e-05/0.2527, allocations: 4 kB / 433 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.2529, allocations: 27.67 kB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.171e-05/0.2529, allocations: 27.78 kB / 433.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004777/0.2534, allocations: 115.8 kB / 433.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000354/0.2537, allocations: 275.4 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.254, allocations: 157.9 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2541, allocations: 91.69 kB / 433.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.2543, allocations: 83.55 kB / 433.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.507e-05/0.2543, allocations: 24 kB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.743e-05/0.2544, allocations: 28 kB / 433.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.93e-05/0.2545, allocations: 59.81 kB / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.2546, allocations: 87.53 kB / 434 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.2549, allocations: 259.3 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2549, allocations: 0 / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2549, allocations: 4 kB / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2549, allocations: 0 / 434.3 MB, free: 3.461 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.000693/0.2556, allocations: 417.2 kB / 434.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.2556, allocations: 8.031 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.741e-05/0.2557, allocations: 62.72 kB / 434.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002529/0.256, allocations: 36.78 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.2563, allocations: 170.2 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.2563, allocations: 24.88 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.2563, allocations: 28.38 kB / 435 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004392/0.2568, allocations: 265.8 kB / 435.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2568, allocations: 7.938 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.2568, allocations: 11.98 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.2568, allocations: 15.92 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.2571, allocations: 161.5 kB / 435.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.2583, allocations: 0.8742 MB / 436.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.2586, allocations: 161.4 kB / 436.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.2587, allocations: 61.7 kB / 436.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2587, allocations: 4 kB / 436.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.2589, allocations: 137.1 kB / 436.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.259, allocations: 0 / 436.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000461/0.2594, allocations: 230.4 kB / 436.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.2595, allocations: 85.11 kB / 437 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.2596, allocations: 157.7 kB / 437.1 MB, free: 376 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.2597, allocations: 33.7 kB / 437.2 MB, free: 336 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.2598, allocations: 148.8 kB / 437.3 MB, free: 180 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.2598, allocations: 63.47 kB / 437.4 MB, free: 116 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.2599, allocations: 85.42 kB / 437.5 MB, free: 24 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.2601, allocations: 326.8 kB / 437.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2603, allocations: 68.05 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.2604, allocations: 136.5 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.2607, allocations: 196.8 kB / 438.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.2608, allocations: 8 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004226/0.2612, allocations: 253.3 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2612, allocations: 4 kB / 438.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.2612, allocations: 7.984 kB / 438.4 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.2612, allocations: 4 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.2614, allocations: 31.92 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.2614, allocations: 4.281 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2615, allocations: 31.78 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.2615, allocations: 16 kB / 438.5 MB, free: 14.88 MB / 350.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.0001918/0.2617, allocations: 157.7 kB / 438.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.99e-05/0.2618, allocations: 11.95 kB / 438.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.005e-05/0.2618, allocations: 24.92 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2618, allocations: 3.938 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2618, allocations: 0 / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.2618, allocations: 7.938 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008214/0.2627, allocations: 0.5353 MB / 439.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2627, allocations: 0 / 439.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/0.2627, allocations: 12 kB / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2627, allocations: 3.938 kB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.2628, allocations: 15.92 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2628, allocations: 0 / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2628, allocations: 0 / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003604/0.2631, allocations: 276.1 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.2631, allocations: 19.83 kB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.2632, allocations: 11.94 kB / 439.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.344e-05/0.2633, allocations: 8 kB / 439.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.8e-05/0.2634, allocations: 23.97 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.2634, allocations: 7.984 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.257e-05/0.2635, allocations: 98.77 kB / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2635, allocations: 0 / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.2638, allocations: 47.89 kB / 439.8 MB, free: 13.55 MB / 350.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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0007963/0.2646, allocations: 0.8212 MB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.2649, allocations: 172 kB / 440.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2649, allocations: 4.188 kB / 440.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.2651, allocations: 67.91 kB / 440.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.2654, allocations: 26.75 kB / 440.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.268, allocations: 2.053 MB / 442.9 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.2682, allocations: 121.6 kB / 443 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.102e-05/0.2683, allocations: 21.94 kB / 443 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.2684, allocations: 59.42 kB / 443.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2684, allocations: 0 / 443.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03157/0.3, allocations: 4.13 MB / 447.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.28, allocations: 15.2 kB / 447.2 MB, free: 6.016 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_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_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.785414348822087]