Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001802/0.001802, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002236/0.002236, allocations: 214.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 67.88 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2422, allocations: 53.41 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00306/0.2453, allocations: 1.683 MB / 432.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007869/0.2461, allocations: 295.2 kB / 433.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.2462, allocations: 7.938 kB / 433.1 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.2464, allocations: 27.67 kB / 433.2 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.021e-05/0.2464, allocations: 23.78 kB / 433.2 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003973/0.2468, allocations: 119.8 kB / 433.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.2472, allocations: 279.4 kB / 433.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.2476, allocations: 159.5 kB / 433.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2477, allocations: 95.7 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.2478, allocations: 103.5 kB / 433.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.2479, allocations: 27.94 kB / 434 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.861e-05/0.248, allocations: 35.92 kB / 434 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.248, allocations: 51.84 kB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.2481, allocations: 107.5 kB / 434.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.2485, allocations: 263.2 kB / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.2485, allocations: 0 / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2485, allocations: 0 / 434.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.2485, allocations: 4 kB / 434.4 MB, free: 3.453 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.000688/0.2492, allocations: 417.2 kB / 434.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2492, allocations: 12.03 kB / 434.8 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.2493, allocations: 58.72 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.2495, allocations: 32.78 kB / 434.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.2498, allocations: 170.2 kB / 435.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.2499, allocations: 24.88 kB / 435.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.2499, allocations: 28.38 kB / 435.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004562/0.2504, allocations: 277.7 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.2504, allocations: 3.938 kB / 435.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.2504, allocations: 12 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2504, allocations: 4 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003047/0.2507, allocations: 165.6 kB / 435.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.2519, allocations: 0.9288 MB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/0.2522, allocations: 164.9 kB / 436.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.2523, allocations: 65.7 kB / 436.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.2524, allocations: 0 / 436.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.2526, allocations: 144 kB / 436.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.2526, allocations: 4 kB / 436.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004448/0.253, allocations: 225.3 kB / 437.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.2531, allocations: 81.11 kB / 437.2 MB, free: 480 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.2532, allocations: 160.5 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/0.2533, allocations: 33.7 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.2534, allocations: 148.7 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.2534, allocations: 59.58 kB / 437.6 MB, free: 56 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2535, allocations: 81.77 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2537, allocations: 330.8 kB / 438 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2538, allocations: 67.75 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.254, allocations: 136.5 kB / 438.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.2542, allocations: 208.2 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2542, allocations: 4 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003784/0.2546, allocations: 245.3 kB / 438.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.2546, allocations: 4 kB / 438.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/0.2547, allocations: 7.984 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.2547, allocations: 4 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.2548, allocations: 36.2 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.2548, allocations: 7.938 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.155e-05/0.2549, allocations: 27.78 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.2549, allocations: 16 kB / 438.7 MB, free: 14.82 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.000162/0.2551, allocations: 161.7 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.2551, allocations: 11.95 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.796e-05/0.2552, allocations: 20.92 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2552, allocations: 0 / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2552, allocations: 4 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2552, allocations: 7.938 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006971/0.2559, allocations: 0.5515 MB / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2559, allocations: 0 / 439.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.724e-05/0.2559, allocations: 15.94 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2559, allocations: 0 / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.256, allocations: 7.922 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.256, allocations: 4 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.256, allocations: 0 / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.2563, allocations: 272.1 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.2563, allocations: 19.83 kB / 439.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.2563, allocations: 11.94 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.2565, allocations: 8 kB / 439.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.473e-05/0.2565, allocations: 27.95 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.2565, allocations: 4 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.801e-05/0.2566, allocations: 107.2 kB / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2566, allocations: 0 / 440 MB, free: 13.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.2569, allocations: 51.89 kB / 440 MB, free: 13.46 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.0006264/0.2575, allocations: 0.8067 MB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003187/0.2579, allocations: 172.4 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2579, allocations: 0 / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.258, allocations: 79.62 kB / 441.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2583, allocations: 19.94 kB / 441.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.2608, allocations: 2.064 MB / 443.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.2612, allocations: 0.7443 MB / 443.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.237e-05/0.2613, allocations: 29.92 kB / 443.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2614, allocations: 55.42 kB / 444 MB, free: 9.301 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2614, allocations: 0 / 444 MB, free: 9.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.2898, allocations: 3.785 MB / 447.8 MB, free: 5.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.96, allocations: 11.47 kB / 447.8 MB, free: 5.617 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.542619275998732]