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.001287/0.001287, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001364/0.001364, allocations: 205.2 kB / 23.73 MB, free: 4.379 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.793 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_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 0.0015/0.0015, allocations: 43.94 kB / 377.7 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2662, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003203/0.2694, allocations: 1.656 MB / 432.7 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007886/0.2702, allocations: 303.1 kB / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2703, allocations: 0 / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.2705, allocations: 27.67 kB / 433 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.2706, allocations: 19.81 kB / 433.1 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.271, allocations: 135.7 kB / 433.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003567/0.2714, allocations: 275.5 kB / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003042/0.2717, allocations: 161.9 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2718, allocations: 95.7 kB / 433.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.2719, allocations: 99.53 kB / 433.8 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.013e-05/0.272, allocations: 24 kB / 433.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.491e-05/0.272, allocations: 32 kB / 433.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.985e-05/0.2721, allocations: 55.83 kB / 433.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2722, allocations: 87.64 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003344/0.2726, allocations: 255.3 kB / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2726, allocations: 0 / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2726, allocations: 0 / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.2726, allocations: 4 kB / 434.3 MB, free: 3.445 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.0006921/0.2733, allocations: 431.3 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2733, allocations: 8.031 kB / 434.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.002e-05/0.2734, allocations: 58.73 kB / 434.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002519/0.2736, allocations: 40.77 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.2739, allocations: 174.2 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.274, allocations: 24.88 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.858e-05/0.274, allocations: 28.38 kB / 435 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.2745, allocations: 269.7 kB / 435.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2745, allocations: 3.938 kB / 435.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.2745, allocations: 8 kB / 435.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.2745, allocations: 8 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.2749, allocations: 165.6 kB / 435.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2761, allocations: 0.8703 MB / 436.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.2764, allocations: 161.3 kB / 436.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.2765, allocations: 77.72 kB / 436.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.2765, allocations: 3.938 kB / 436.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.2768, allocations: 138.6 kB / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.2768, allocations: 0 / 436.7 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004568/0.2772, allocations: 225 kB / 436.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.2773, allocations: 85.09 kB / 437 MB, free: 0.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.2774, allocations: 164.3 kB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.2775, allocations: 37.7 kB / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.2776, allocations: 140.9 kB / 437.3 MB, free: 148 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.895e-05/0.2776, allocations: 67.52 kB / 437.4 MB, free: 80 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.2778, allocations: 73.69 kB / 437.5 MB, free: 0 / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2779, allocations: 330.8 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2781, allocations: 67.75 kB / 437.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.2782, allocations: 140.5 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.2785, allocations: 192.8 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.2785, allocations: 0 / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000385/0.2789, allocations: 253.3 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2789, allocations: 11.98 kB / 438.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2789, allocations: 8.281 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2789, allocations: 4 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.2791, allocations: 31.86 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.2791, allocations: 4 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.656e-05/0.2792, allocations: 31.78 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.2792, allocations: 19.98 kB / 438.5 MB, free: 14.85 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.0001552/0.2794, allocations: 157.7 kB / 438.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.504e-05/0.2794, allocations: 15.91 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.2794, allocations: 16.94 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.2795, allocations: 11.98 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2795, allocations: 0 / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.2795, allocations: 7.984 kB / 438.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007234/0.2802, allocations: 0.5275 MB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2802, allocations: 0 / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.945e-05/0.2803, allocations: 15.94 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.2803, allocations: 0 / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.2803, allocations: 11.94 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2803, allocations: 3.984 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2803, allocations: 3.938 kB / 439.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.2806, allocations: 271 kB / 439.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.2806, allocations: 23.78 kB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.2807, allocations: 15.92 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.008e-05/0.2808, allocations: 8 kB / 439.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.2808, allocations: 19.97 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.2808, allocations: 7.984 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.179e-05/0.2809, allocations: 99.2 kB / 439.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2809, allocations: 0 / 439.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.2812, allocations: 51.89 kB / 439.8 MB, free: 13.51 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,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.0007495/0.282, allocations: 0.8184 MB / 440.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.2823, allocations: 171.7 kB / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2823, allocations: 0 / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.2825, allocations: 78.08 kB / 440.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.2828, allocations: 16 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.2852, allocations: 2.067 MB / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2853, allocations: 129.5 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.422e-05/0.2854, allocations: 21.95 kB / 443.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2855, allocations: 59.41 kB / 443.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2855, allocations: 0 / 443.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.3153, allocations: 4.217 MB / 447.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.07, allocations: 18.91 kB / 447.4 MB, free: 5.879 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/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: 13.755647612997564]