Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 55.91 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2644, allocations: 52.18 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002977/0.2674, allocations: 1.717 MB / 424.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006882/0.2681, allocations: 295.1 kB / 424.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.11e-05/0.2682, allocations: 7.938 kB / 424.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.2683, allocations: 27.67 kB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.705e-05/0.2684, allocations: 15.81 kB / 424.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.2687, allocations: 131.8 kB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.2691, allocations: 271.5 kB / 425.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.2694, allocations: 150 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.2695, allocations: 99.62 kB / 425.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.2696, allocations: 95.59 kB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.981e-05/0.2697, allocations: 24 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.722e-05/0.2697, allocations: 35.94 kB / 425.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.647e-05/0.2698, allocations: 59.89 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2699, allocations: 99.45 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.2702, allocations: 259.3 kB / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2702, allocations: 0 / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2702, allocations: 0 / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.2702, allocations: 7.938 kB / 425.9 MB, free: 11.35 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.0006301/0.2709, allocations: 417.2 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2709, allocations: 12.03 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7e-05/0.271, allocations: 66.66 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.271, allocations: 28.73 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.2713, allocations: 170.3 kB / 426.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.2713, allocations: 20.88 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.2714, allocations: 28.38 kB / 426.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000453/0.2718, allocations: 269.7 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2718, allocations: 3.938 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.2719, allocations: 19.98 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.2719, allocations: 4 kB / 426.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003117/0.2722, allocations: 161.6 kB / 427 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2734, allocations: 0.9404 MB / 428 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002902/0.2737, allocations: 157.4 kB / 428.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.2738, allocations: 69.69 kB / 428.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.2738, allocations: 4 kB / 428.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.274, allocations: 141 kB / 428.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.274, allocations: 0 / 428.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004476/0.2745, allocations: 219 kB / 428.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.2746, allocations: 85.11 kB / 428.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.2747, allocations: 153.4 kB / 428.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.2747, allocations: 41.83 kB / 428.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2748, allocations: 144.8 kB / 429 MB, free: 8.008 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.2749, allocations: 63.47 kB / 429 MB, free: 7.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.275, allocations: 81.67 kB / 429.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.2752, allocations: 330.8 kB / 429.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.2753, allocations: 63.97 kB / 429.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.2755, allocations: 140.5 kB / 429.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.2757, allocations: 200.8 kB / 429.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2757, allocations: 0 / 429.8 MB, free: 7.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003974/0.2761, allocations: 265.5 kB / 430.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2761, allocations: 8 kB / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2761, allocations: 0 / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.2762, allocations: 4 kB / 430.1 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.2763, allocations: 31.92 kB / 430.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.2763, allocations: 11.92 kB / 430.1 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.2764, allocations: 35.78 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.2765, allocations: 15.98 kB / 430.2 MB, free: 6.699 MB / 334.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.0001544/0.2766, allocations: 165.7 kB / 430.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.2766, allocations: 15.91 kB / 430.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003445/0.277, allocations: 186.5 kB / 430.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.277, allocations: 4 kB / 430.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.277, allocations: 0 / 430.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.277, allocations: 3.984 kB / 430.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007447/0.2777, allocations: 0.5625 MB / 431.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2777, allocations: 0 / 431.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.2778, allocations: 19.98 kB / 431.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.2778, allocations: 7.938 kB / 431.2 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.2778, allocations: 4 kB / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2778, allocations: 0 / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.2778, allocations: 4 kB / 431.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003323/0.2782, allocations: 296.3 kB / 431.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.874e-05/0.2782, allocations: 15.89 kB / 431.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.2782, allocations: 7.938 kB / 431.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.57e-05/0.2783, allocations: 8 kB / 431.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.58e-05/0.2784, allocations: 23.95 kB / 431.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.2784, allocations: 8 kB / 431.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.441e-05/0.2785, allocations: 95.27 kB / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2785, allocations: 0 / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.2788, allocations: 55.84 kB / 431.7 MB, free: 5.141 MB / 334.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0006812/0.2795, allocations: 0.8378 MB / 432.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.2798, allocations: 175.8 kB / 432.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2798, allocations: 0 / 432.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.2799, allocations: 80.34 kB / 432.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.2802, allocations: 28.05 kB / 432.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.2825, allocations: 2.071 MB / 434.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.2828, allocations: 0.7325 MB / 435.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.984e-05/0.2829, allocations: 25.94 kB / 435.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.283, allocations: 67.34 kB / 435.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.283, allocations: 7.938 kB / 435.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.3125, allocations: 3.987 MB / 439.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.34, allocations: 7.844 kB / 439.7 MB, free: 13.06 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.89849392799806]