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.001309/0.001309, allocations: 115.8 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.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.001488/0.001488, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.394/1.394, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.001496/0.001496, allocations: 51.91 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2489, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002959/0.2519, allocations: 1.696 MB / 432.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006994/0.2526, allocations: 303.1 kB / 433.1 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2527, allocations: 4 kB / 433.1 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.2528, allocations: 27.67 kB / 433.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.987e-05/0.2529, allocations: 19.81 kB / 433.2 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.2533, allocations: 123.8 kB / 433.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003524/0.2536, allocations: 283.4 kB / 433.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.2539, allocations: 161.2 kB / 433.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.254, allocations: 95.7 kB / 433.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001553/0.2542, allocations: 99.53 kB / 433.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/0.2542, allocations: 24 kB / 433.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.143e-05/0.2543, allocations: 35.98 kB / 434 MB, free: 4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.254e-05/0.2544, allocations: 55.83 kB / 434 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2545, allocations: 107.4 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.2548, allocations: 258.9 kB / 434.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2548, allocations: 3.984 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2548, allocations: 0 / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2548, allocations: 4 kB / 434.4 MB, free: 3.578 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.0006832/0.2555, allocations: 425.2 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2555, allocations: 8.031 kB / 434.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.016e-05/0.2556, allocations: 58.72 kB / 434.9 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.2559, allocations: 40.78 kB / 434.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.2562, allocations: 170.2 kB / 435.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.2562, allocations: 20.88 kB / 435.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.2562, allocations: 28.36 kB / 435.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004639/0.2567, allocations: 277.8 kB / 435.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.2567, allocations: 3.938 kB / 435.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.2567, allocations: 8 kB / 435.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.2567, allocations: 8 kB / 435.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.257, allocations: 165.5 kB / 435.6 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.2582, allocations: 0.9287 MB / 436.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2585, allocations: 161.4 kB / 436.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.2586, allocations: 65.69 kB / 436.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.2587, allocations: 4 kB / 436.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.2589, allocations: 134.7 kB / 436.8 MB, free: 0.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2589, allocations: 7.938 kB / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004323/0.2593, allocations: 225 kB / 437.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.2594, allocations: 81.11 kB / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.2595, allocations: 164.3 kB / 437.3 MB, free: 432 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.556e-05/0.2596, allocations: 41.69 kB / 437.4 MB, free: 384 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.2597, allocations: 132.8 kB / 437.5 MB, free: 244 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.2597, allocations: 67.52 kB / 437.6 MB, free: 176 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.2598, allocations: 81.75 kB / 437.6 MB, free: 88 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.26, allocations: 334.8 kB / 438 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2601, allocations: 67.75 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2603, allocations: 132.5 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.2606, allocations: 200.8 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2606, allocations: 0 / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003887/0.261, allocations: 249.3 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.261, allocations: 8 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.261, allocations: 0 / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.261, allocations: 4 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.2611, allocations: 40.2 kB / 438.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.2612, allocations: 7.984 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.117e-05/0.2612, allocations: 27.78 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.2613, allocations: 12 kB / 438.7 MB, free: 14.95 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.000161/0.2614, allocations: 165.7 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.2615, allocations: 15.91 kB / 438.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.2615, allocations: 16.94 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2615, allocations: 7.938 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2615, allocations: 7.938 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.2615, allocations: 3.984 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007325/0.2623, allocations: 0.5431 MB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2623, allocations: 0 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.2623, allocations: 15.98 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2623, allocations: 4 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.2623, allocations: 7.938 kB / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2623, allocations: 0 / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2624, allocations: 4 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003084/0.2627, allocations: 279 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.154e-05/0.2627, allocations: 19.84 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.2627, allocations: 7.938 kB / 439.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.589e-05/0.2628, allocations: 11.98 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.2629, allocations: 19.97 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.2629, allocations: 4 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.749e-05/0.2629, allocations: 103.3 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2629, allocations: 3.938 kB / 439.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.2632, allocations: 47.89 kB / 440 MB, free: 13.59 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.0006083/0.2638, allocations: 0.8145 MB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003291/0.2642, allocations: 179.7 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2642, allocations: 0 / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.2643, allocations: 70.02 kB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.2646, allocations: 22.48 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.2668, allocations: 2.068 MB / 443.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.2672, allocations: 0.7326 MB / 443.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.944e-05/0.2672, allocations: 25.94 kB / 443.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2673, allocations: 59.42 kB / 443.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2673, allocations: 0 / 443.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02887/0.2962, allocations: 3.793 MB / 447.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.07, allocations: 4.734 kB / 447.7 MB, free: 5.77 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.497619965000922]