Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0013/0.0013, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001645/0.001645, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.526/1.526, allocations: 230.6 MB / 254.1 MB, free: 15.09 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_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002646/0.002646, allocations: 51.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1256, allocations: 53.32 MB / 426.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003251/0.1288, allocations: 1.684 MB / 428 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007407/0.1296, allocations: 299.1 kB / 428.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.14e-05/0.1297, allocations: 0 / 428.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1298, allocations: 27.67 kB / 428.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.315e-05/0.1299, allocations: 19.81 kB / 428.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004652/0.1303, allocations: 119.8 kB / 428.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003403/0.1307, allocations: 271.5 kB / 428.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003368/0.131, allocations: 166.9 kB / 428.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1311, allocations: 87.72 kB / 428.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1313, allocations: 99.58 kB / 429 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.1313, allocations: 24 kB / 429.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.1314, allocations: 35.98 kB / 429.1 MB, free: 2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.829e-05/0.1314, allocations: 59.83 kB / 429.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.1315, allocations: 99.47 kB / 429.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003797/0.1319, allocations: 270.8 kB / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1319, allocations: 0 / 429.5 MB, free: 1.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1319, allocations: 7.938 kB / 429.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.1319, allocations: 0 / 429.5 MB, free: 1.57 MB / 350.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.0007947/0.1327, allocations: 498.3 kB / 430 MB, free: 1.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1328, allocations: 8.031 kB / 430 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.896e-05/0.1328, allocations: 62.72 kB / 430.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002585/0.1331, allocations: 36.78 kB / 430.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.1334, allocations: 232.1 kB / 430.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.991e-05/0.1335, allocations: 24.94 kB / 430.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.078e-05/0.1335, allocations: 28.31 kB / 430.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.134, allocations: 270.6 kB / 430.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.134, allocations: 3.938 kB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.134, allocations: 4 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.134, allocations: 8 kB / 430.7 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.1344, allocations: 173.6 kB / 430.8 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.1356, allocations: 0.952 MB / 431.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.1359, allocations: 165.2 kB / 432 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.136, allocations: 73.72 kB / 432 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.136, allocations: 4 kB / 432 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.1363, allocations: 137.1 kB / 432.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.212e-06/0.1363, allocations: 0 / 432.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004445/0.1367, allocations: 220.4 kB / 432.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.435e-05/0.1368, allocations: 89.09 kB / 432.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.137, allocations: 159.3 kB / 432.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.137, allocations: 37.7 kB / 432.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1371, allocations: 148.8 kB / 432.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.298e-05/0.1371, allocations: 59.58 kB / 432.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.1372, allocations: 81.64 kB / 432.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1374, allocations: 326.8 kB / 433.3 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.1375, allocations: 71.75 kB / 433.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.1377, allocations: 148.3 kB / 433.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.138, allocations: 196.8 kB / 433.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.138, allocations: 0 / 433.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003813/0.1384, allocations: 245.3 kB / 433.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1384, allocations: 18.39 kB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1384, allocations: 4 kB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1384, allocations: 7.938 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.1386, allocations: 35.92 kB / 434 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.1386, allocations: 4 kB / 434 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.1387, allocations: 27.78 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.1387, allocations: 12 kB / 434 MB, free: 12.72 MB / 366.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.0001616/0.1389, allocations: 157.7 kB / 434.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.546e-05/0.1389, allocations: 15.95 kB / 434.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.045e-05/0.1389, allocations: 16.84 kB / 434.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1389, allocations: 4 kB / 434.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.139, allocations: 3.984 kB / 434.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.139, allocations: 0 / 434.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007801/0.1397, allocations: 0.5752 MB / 434.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1397, allocations: 0 / 434.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.594e-05/0.1398, allocations: 23.92 kB / 434.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1398, allocations: 3.984 kB / 434.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.1398, allocations: 11.94 kB / 434.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1398, allocations: 0 / 434.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1398, allocations: 0 / 434.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/0.1402, allocations: 279.3 kB / 435.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.1403, allocations: 96.95 kB / 435.2 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1403, allocations: 7.938 kB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.852e-05/0.1404, allocations: 11.98 kB / 435.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.586e-05/0.1405, allocations: 19.98 kB / 435.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.1405, allocations: 11.94 kB / 435.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.018e-05/0.1406, allocations: 101.4 kB / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1406, allocations: 0 / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000305/0.1409, allocations: 47.89 kB / 435.4 MB, free: 11.24 MB / 366.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.0007877/0.1416, allocations: 0.8184 MB / 436.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003948/0.142, allocations: 172 kB / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.142, allocations: 0 / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1422, allocations: 74.62 kB / 436.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.1425, allocations: 24.61 kB / 436.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/0.145, allocations: 2.074 MB / 438.5 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.1454, allocations: 0.7326 MB / 439.3 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.836e-05/0.1455, allocations: 21.95 kB / 439.3 MB, free: 7.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.1456, allocations: 63.41 kB / 439.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1456, allocations: 0 / 439.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.1719, allocations: 3.518 MB / 442.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.238, allocations: 2.406 kB / 442.9 MB, free: 3.645 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.185655541994493]