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.001143/0.001143, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009314/0.0009314, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9344/0.9344, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.814e-06/1.814e-06, allocations: 3.938 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.259e-05/1.441e-05, allocations: 2.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002034/0.002048, allocations: 1.664 MB / 320.1 MB, free: 4.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000538/0.002586, allocations: 291.1 kB / 320.4 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.83e-05/0.002664, allocations: 7.938 kB / 320.4 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.002778, allocations: 31.67 kB / 320.4 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.226e-05/0.002821, allocations: 19.78 kB / 320.4 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005141/0.003335, allocations: 123.7 kB / 320.5 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000278/0.003613, allocations: 279.5 kB / 320.8 MB, free: 3.957 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.003854, allocations: 146 kB / 320.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.003974, allocations: 143.7 kB / 321.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.00408, allocations: 71.7 kB / 321.2 MB, free: 3.602 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.116e-05/0.004111, allocations: 24 kB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.224e-05/0.004183, allocations: 35.98 kB / 321.2 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.004235, allocations: 51.83 kB / 321.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.774e-05/0.004313, allocations: 75.8 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.004582, allocations: 271 kB / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.004584, allocations: 0 / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.004585, allocations: 0 / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.00459, allocations: 0 / 321.6 MB, free: 3.152 MB / 282.7 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.0006592/0.005249, allocations: 413.3 kB / 322 MB, free: 2.719 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.005302, allocations: 12.92 kB / 322 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.906e-05/0.005372, allocations: 66.72 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.005428, allocations: 24.8 kB / 322.1 MB, free: 2.609 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.005639, allocations: 173.4 kB / 322.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.005669, allocations: 20.88 kB / 322.3 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.005698, allocations: 36.36 kB / 322.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003116/0.006009, allocations: 269.8 kB / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.00602, allocations: 192 / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.00604, allocations: 12.38 kB / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.00605, allocations: 12.12 kB / 322.6 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002046/0.006255, allocations: 165.8 kB / 322.8 MB, free: 1.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008481/0.007103, allocations: 0.8706 MB / 323.7 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.007316, allocations: 161.3 kB / 323.8 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.521e-05/0.007391, allocations: 76.78 kB / 323.9 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.007409, allocations: 7.938 kB / 323.9 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00039/0.007799, allocations: 141 kB / 324 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.0078, allocations: 3.938 kB / 324 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003007/0.008101, allocations: 231.6 kB / 324.3 MB, free: 308 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.008144, allocations: 85.11 kB / 324.3 MB, free: 204 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.8e-05/0.008222, allocations: 145.7 kB / 324.5 MB, free: 48 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.008242, allocations: 37.7 kB / 324.5 MB, free: 4 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.008324, allocations: 148.7 kB / 324.7 MB, free: 15.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.008358, allocations: 59.64 kB / 324.7 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.655e-05/0.008425, allocations: 85.69 kB / 324.8 MB, free: 15.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.0085, allocations: 326.8 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-05/0.008582, allocations: 67.95 kB / 325.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.008693, allocations: 148 kB / 325.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.008865, allocations: 188.4 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.008868, allocations: 3.938 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002482/0.009116, allocations: 265.2 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.00913, allocations: 8 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.009136, allocations: 0 / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.009152, allocations: 4.281 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.318e-05/0.009245, allocations: 39.86 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.009253, allocations: 4 kB / 325.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.009318, allocations: 23.89 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.009337, allocations: 11.98 kB / 325.9 MB, free: 14.56 MB / 298.7 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.0001037/0.009441, allocations: 161.7 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.517e-05/0.009456, allocations: 19.89 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.009682, allocations: 203 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.009686, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.00969, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.009696, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004485/0.01014, allocations: 0.5472 MB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01015, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.739e-05/0.01018, allocations: 19.98 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.01019, allocations: 0 / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.0102, allocations: 4 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.0102, allocations: 0 / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.0102, allocations: 3.938 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.0104, allocations: 292.1 kB / 327.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.01041, allocations: 15.89 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.01042, allocations: 12 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.669e-05/0.01047, allocations: 3.984 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/0.01052, allocations: 27.91 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.01053, allocations: 11.98 kB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.749e-05/0.01057, allocations: 98.77 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01057, allocations: 3.938 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002082/0.01078, allocations: 55.83 kB / 327.4 MB, free: 13 MB / 298.7 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.0003897/0.01117, allocations: 0.8267 MB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002149/0.01138, allocations: 183.7 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01139, allocations: 0 / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.174e-05/0.01147, allocations: 75.91 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.01166, allocations: 23.92 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.01308, allocations: 2.084 MB / 330.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.121e-05/0.01316, allocations: 129.3 kB / 330.7 MB, free: 9.488 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.56e-05/0.01322, allocations: 29.94 kB / 330.7 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.452e-05/0.01329, allocations: 60.48 kB / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01329, allocations: 0 / 330.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01592/0.02921, allocations: 4.498 MB / 335.3 MB, free: 5.039 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/6.85, allocations: 0 / 335.3 MB, free: 5.039 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/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: 8.736694593913853]