Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001446/0.001446, allocations: 112.5 kB / 20.43 MB, free: 1.312 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.001479/0.001479, allocations: 210.8 kB / 23.74 MB, free: 4.543 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.491/1.491, allocations: 230.5 MB / 257.4 MB, free: 8 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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 63.91 kB / 377.7 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2551, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002875/0.2579, allocations: 1.733 MB / 432.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006886/0.2586, allocations: 291.1 kB / 433.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2587, allocations: 4 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.2589, allocations: 31.67 kB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.337e-05/0.2589, allocations: 19.78 kB / 433.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.2593, allocations: 123.8 kB / 433.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.2597, allocations: 283.4 kB / 433.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002727/0.2599, allocations: 149.9 kB / 433.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2601, allocations: 95.69 kB / 433.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.2602, allocations: 99.55 kB / 434 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.2602, allocations: 24 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.61e-05/0.2603, allocations: 27.94 kB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.694e-05/0.2604, allocations: 63.81 kB / 434.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2605, allocations: 99.52 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003215/0.2608, allocations: 255.3 kB / 434.4 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2608, allocations: 3.984 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2608, allocations: 0 / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2608, allocations: 0 / 434.4 MB, free: 3.406 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.0006675/0.2615, allocations: 421.2 kB / 434.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2615, allocations: 12.03 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.878e-05/0.2616, allocations: 58.73 kB / 434.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001998/0.2618, allocations: 32.78 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.2621, allocations: 170.2 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.2621, allocations: 28.86 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.2622, allocations: 24.38 kB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.2626, allocations: 273.7 kB / 435.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.2626, allocations: 3.938 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.2626, allocations: 8 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.2627, allocations: 8 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002885/0.2629, allocations: 165.6 kB / 435.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.2641, allocations: 0.921 MB / 436.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.2643, allocations: 160.9 kB / 436.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.2644, allocations: 73.73 kB / 436.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.2645, allocations: 7.938 kB / 436.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.2647, allocations: 140 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.213e-06/0.2647, allocations: 0 / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004344/0.2651, allocations: 217.4 kB / 437.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.2652, allocations: 92.97 kB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.2653, allocations: 157.3 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.2654, allocations: 41.69 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.2655, allocations: 144.8 kB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.369e-05/0.2655, allocations: 63.52 kB / 437.6 MB, free: 4 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.2656, allocations: 85.53 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2658, allocations: 326.8 kB / 438 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.2659, allocations: 59.97 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2661, allocations: 140.5 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.2663, allocations: 196.3 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.2663, allocations: 0 / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003678/0.2667, allocations: 253.3 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2667, allocations: 10.78 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2667, allocations: 8 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2667, allocations: 4 kB / 438.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.2669, allocations: 31.92 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.2669, allocations: 7.984 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.801e-05/0.267, allocations: 23.84 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.267, allocations: 16 kB / 438.7 MB, free: 14.78 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.0001571/0.2671, allocations: 165.6 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.2672, allocations: 15.91 kB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.439e-05/0.2672, allocations: 20.94 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2672, allocations: 4 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2672, allocations: 0 / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2672, allocations: 0 / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006917/0.2679, allocations: 0.5475 MB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2679, allocations: 0 / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.836e-05/0.268, allocations: 15.98 kB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.268, allocations: 0 / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.268, allocations: 11.94 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.268, allocations: 4 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.268, allocations: 3.938 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.2683, allocations: 280.1 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.543e-05/0.2683, allocations: 7.953 kB / 439.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.2684, allocations: 11.94 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-05/0.2684, allocations: 7.984 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.411e-05/0.2685, allocations: 19.97 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2685, allocations: 12 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.072e-05/0.2686, allocations: 91.27 kB / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2686, allocations: 0 / 439.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.2689, allocations: 55.84 kB / 440 MB, free: 13.44 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.000594/0.2695, allocations: 0.8145 MB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.2698, allocations: 172.3 kB / 441 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2698, allocations: 0 / 441 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.27, allocations: 79.62 kB / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.2703, allocations: 23.36 kB / 441.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.2726, allocations: 2.059 MB / 443.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.273, allocations: 0.7287 MB / 443.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.25e-05/0.2731, allocations: 25.94 kB / 443.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2732, allocations: 59.42 kB / 444 MB, free: 9.285 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2732, allocations: 0 / 444 MB, free: 9.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.3018, allocations: 3.737 MB / 447.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.95, allocations: 18.98 kB / 447.7 MB, free: 5.637 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.583832963999157]