Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0008924/0.0008924, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001069/0.001069, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9123/0.9123, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.511e-05/1.639e-05, allocations: 4.812 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002403/0.002419, allocations: 1.675 MB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006324/0.003051, allocations: 287.1 kB / 326.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.003148, allocations: 11.94 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.003267, allocations: 19.75 kB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.777e-05/0.003305, allocations: 27.72 kB / 326.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/0.003665, allocations: 115.8 kB / 326.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.003909, allocations: 283.4 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.004133, allocations: 159.5 kB / 327.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.00425, allocations: 135.8 kB / 327.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.758e-05/0.004348, allocations: 79.75 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.004376, allocations: 24 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.124e-05/0.004437, allocations: 28 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.234e-05/0.00449, allocations: 59.8 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.623e-05/0.004556, allocations: 67.83 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002813/0.004837, allocations: 267.1 kB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.00484, allocations: 0 / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.00484, allocations: 0 / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.004847, allocations: 0 / 327.7 MB, free: 12.75 MB / 298.7 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.0005383/0.005385, allocations: 425.1 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.005435, allocations: 12.03 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.831e-05/0.005493, allocations: 58.73 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.005702, allocations: 40.77 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.005957, allocations: 169.5 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.19e-05/0.005989, allocations: 24.88 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.006015, allocations: 28.38 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.006339, allocations: 265.9 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.006349, allocations: 8.062 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.006366, allocations: 8.375 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.006375, allocations: 12.12 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.006574, allocations: 173.8 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007726/0.007346, allocations: 0.8673 MB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.007553, allocations: 157.4 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.16e-05/0.007635, allocations: 69.69 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.007653, allocations: 3.938 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001552/0.007808, allocations: 147.4 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.007809, allocations: 3.938 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003135/0.008122, allocations: 222.4 kB / 330.4 MB, free: 9.906 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.008179, allocations: 89.05 kB / 330.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.541e-05/0.008274, allocations: 164.3 kB / 330.6 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.008294, allocations: 33.7 kB / 330.7 MB, free: 9.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.008369, allocations: 140.8 kB / 330.8 MB, free: 9.449 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.008407, allocations: 67.53 kB / 330.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/0.008479, allocations: 77.47 kB / 331 MB, free: 9.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.008586, allocations: 322.8 kB / 331.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/0.008672, allocations: 63.97 kB / 331.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.008792, allocations: 136.5 kB / 331.5 MB, free: 8.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.008992, allocations: 193.1 kB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.008997, allocations: 3.938 kB / 331.7 MB, free: 8.527 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002711/0.009268, allocations: 257.3 kB / 331.9 MB, free: 8.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.009286, allocations: 11.98 kB / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.009293, allocations: 4 kB / 331.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.009314, allocations: 4 kB / 331.9 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.009415, allocations: 31.92 kB / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.009427, allocations: 7.984 kB / 332 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.824e-05/0.009506, allocations: 27.78 kB / 332 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.009522, allocations: 16 kB / 332 MB, free: 8.168 MB / 298.7 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.0001268/0.009649, allocations: 169.9 kB / 332.2 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.009665, allocations: 15.91 kB / 332.2 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.009695, allocations: 12.94 kB / 332.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.009697, allocations: 4 kB / 332.2 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.009703, allocations: 0 / 332.2 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.00971, allocations: 7.984 kB / 332.2 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004817/0.01019, allocations: 0.546 MB / 332.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01019, allocations: 3.938 kB / 332.8 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.534e-05/0.01023, allocations: 12 kB / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.01023, allocations: 0 / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.01024, allocations: 8 kB / 332.8 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.01024, allocations: 7.922 kB / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01025, allocations: 0 / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.01044, allocations: 276.1 kB / 333.1 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.01046, allocations: 15.84 kB / 333.1 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.01048, allocations: 11.98 kB / 333.1 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.38e-05/0.01052, allocations: 8 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/0.01057, allocations: 23.91 kB / 333.1 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.01058, allocations: 7.984 kB / 333.1 MB, free: 6.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.354e-05/0.01063, allocations: 99.27 kB / 333.2 MB, free: 6.863 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01063, allocations: 4 kB / 333.2 MB, free: 6.859 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000208/0.01083, allocations: 51.84 kB / 333.3 MB, free: 6.809 MB / 298.7 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,step.active,transition1.enableFire,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.0003961/0.01123, allocations: 0.809 MB / 334.1 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002608/0.01149, allocations: 167.6 kB / 334.3 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01149, allocations: 0 / 334.3 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.458e-05/0.01158, allocations: 72.47 kB / 334.3 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.0118, allocations: 24 kB / 334.4 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.0134, allocations: 2.086 MB / 336.4 MB, free: 3.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.691e-05/0.0135, allocations: 133.5 kB / 336.6 MB, free: 3.336 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.54e-05/0.01355, allocations: 17.95 kB / 336.6 MB, free: 3.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.232e-05/0.01364, allocations: 60.47 kB / 336.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01364, allocations: 0 / 336.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.0301, allocations: 4.297 MB / 340.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.044/7.074, allocations: 10.25 kB / 341 MB, free: 15.08 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.893645238131285]