Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001728/0.001728, allocations: 115.6 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.00212/0.00212, allocations: 214.1 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.409/1.409, allocations: 230.6 MB / 257.5 MB, free: 8.012 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_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 47.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2673, allocations: 53.35 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003081/0.2704, allocations: 1.724 MB / 432.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007301/0.2711, allocations: 307 kB / 433.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.2712, allocations: 7.938 kB / 433.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.2714, allocations: 23.73 kB / 433.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.473e-05/0.2714, allocations: 23.73 kB / 433.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.2718, allocations: 119.8 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003369/0.2721, allocations: 279.4 kB / 433.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002844/0.2724, allocations: 153.9 kB / 433.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.2726, allocations: 95.7 kB / 433.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.2727, allocations: 99.48 kB / 433.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.2728, allocations: 24 kB / 433.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.831e-05/0.2728, allocations: 39.97 kB / 434 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-05/0.2729, allocations: 55.83 kB / 434 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.273, allocations: 99.52 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.2733, allocations: 259.3 kB / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2733, allocations: 0 / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2733, allocations: 0 / 434.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.2733, allocations: 0 / 434.4 MB, free: 3.59 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.000632/0.274, allocations: 425.2 kB / 434.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.274, allocations: 8.031 kB / 434.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.855e-05/0.2741, allocations: 66.66 kB / 434.9 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.2743, allocations: 32.78 kB / 434.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.2746, allocations: 170.3 kB / 435.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.2746, allocations: 20.88 kB / 435.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.2747, allocations: 24.38 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.2751, allocations: 273.7 kB / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2751, allocations: 7.938 kB / 435.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.2752, allocations: 8 kB / 435.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.2752, allocations: 8 kB / 435.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/0.2755, allocations: 165.6 kB / 435.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.2766, allocations: 0.9249 MB / 436.5 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.2769, allocations: 157.4 kB / 436.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.277, allocations: 77.62 kB / 436.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.277, allocations: 7.984 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.2772, allocations: 126.6 kB / 436.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.2772, allocations: 8 kB / 436.9 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004225/0.2777, allocations: 225 kB / 437.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.2777, allocations: 81.11 kB / 437.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.2778, allocations: 161.3 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/0.2779, allocations: 41.64 kB / 437.4 MB, free: 404 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.278, allocations: 140.7 kB / 437.5 MB, free: 256 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.278, allocations: 67.52 kB / 437.6 MB, free: 188 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.615e-05/0.2781, allocations: 77.47 kB / 437.6 MB, free: 104 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.2783, allocations: 330.9 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2784, allocations: 67.97 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.2786, allocations: 132.5 kB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.2788, allocations: 208.8 kB / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2788, allocations: 0 / 438.4 MB, free: 15.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003699/0.2792, allocations: 249.3 kB / 438.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2792, allocations: 8 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2792, allocations: 0 / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.2793, allocations: 4 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.2794, allocations: 36.2 kB / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2794, allocations: 11.94 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.79e-05/0.2795, allocations: 23.84 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.2795, allocations: 15.98 kB / 438.7 MB, free: 14.96 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.0001584/0.2797, allocations: 161.6 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.2797, allocations: 19.91 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.2798, allocations: 16.92 kB / 438.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2798, allocations: 4 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2798, allocations: 0 / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2798, allocations: 4 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007176/0.2805, allocations: 0.5431 MB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2805, allocations: 0 / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.797e-05/0.2806, allocations: 15.94 kB / 439.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2806, allocations: 0 / 439.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.2806, allocations: 15.92 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2806, allocations: 0 / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2806, allocations: 0 / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.2809, allocations: 275 kB / 439.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.2809, allocations: 15.94 kB / 439.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2809, allocations: 11.88 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.281, allocations: 8 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.2811, allocations: 23.89 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.2811, allocations: 8 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.642e-05/0.2812, allocations: 103.2 kB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2812, allocations: 0 / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.2815, allocations: 55.84 kB / 440 MB, free: 13.61 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.0005965/0.2821, allocations: 0.8067 MB / 440.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.2824, allocations: 171.8 kB / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2824, allocations: 0 / 440.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.2825, allocations: 81.94 kB / 441 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.2828, allocations: 16 kB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.2851, allocations: 2.052 MB / 443.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.2855, allocations: 0.7404 MB / 443.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.494e-05/0.2856, allocations: 17.95 kB / 443.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2857, allocations: 63.41 kB / 443.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2857, allocations: 0 / 443.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02863/0.3143, allocations: 3.76 MB / 447.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.17, allocations: 4.812 kB / 447.7 MB, free: 5.832 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.734136289000162]