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.00193/0.00193, allocations: 119.4 kB / 17.79 MB, free: 5.285 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.002335/0.002335, allocations: 215.5 kB / 20.75 MB, free: 2.328 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.531/1.531, allocations: 230.4 MB / 254 MB, free: 15.03 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.001844/0.001844, allocations: 63.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1094, allocations: 53.37 MB / 426.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002922/0.1123, allocations: 1.725 MB / 428.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006798/0.113, allocations: 287.2 kB / 428.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.1131, allocations: 7.938 kB / 428.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1132, allocations: 23.67 kB / 428.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.756e-05/0.1133, allocations: 23.78 kB / 428.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003576/0.1136, allocations: 107.9 kB / 428.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.114, allocations: 275.5 kB / 428.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.1142, allocations: 153.5 kB / 428.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1143, allocations: 103.6 kB / 429 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.1145, allocations: 99.53 kB / 429.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.253e-05/0.1145, allocations: 20 kB / 429.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.1146, allocations: 35.98 kB / 429.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.108e-05/0.1146, allocations: 51.84 kB / 429.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.1148, allocations: 107.5 kB / 429.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003126/0.1151, allocations: 254.9 kB / 429.6 MB, free: 1.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1151, allocations: 3.938 kB / 429.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1151, allocations: 0 / 429.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1151, allocations: 0 / 429.6 MB, free: 1.375 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.0006863/0.1158, allocations: 494.5 kB / 430.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.1158, allocations: 12.02 kB / 430.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.805e-05/0.1159, allocations: 62.73 kB / 430.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.1161, allocations: 32.78 kB / 430.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.1164, allocations: 228.1 kB / 430.4 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.1164, allocations: 24.88 kB / 430.4 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.1165, allocations: 28.38 kB / 430.4 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.1169, allocations: 270.5 kB / 430.7 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1169, allocations: 7.938 kB / 430.7 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.1169, allocations: 12 kB / 430.7 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.117, allocations: 4 kB / 430.7 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003345/0.1173, allocations: 165.6 kB / 430.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1185, allocations: 0.9596 MB / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.1188, allocations: 153.4 kB / 432 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1189, allocations: 73.69 kB / 432.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1189, allocations: 11.94 kB / 432.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002187/0.1191, allocations: 129.1 kB / 432.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1191, allocations: 0 / 432.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004325/0.1196, allocations: 222 kB / 432.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1196, allocations: 81.11 kB / 432.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.1198, allocations: 157.8 kB / 432.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.1198, allocations: 37.7 kB / 432.7 MB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1199, allocations: 148.7 kB / 432.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.689e-05/0.12, allocations: 59.53 kB / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.1201, allocations: 81.47 kB / 433 MB, free: 13.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1202, allocations: 330.8 kB / 433.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1203, allocations: 63.97 kB / 433.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.1205, allocations: 152.3 kB / 433.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.1208, allocations: 196.2 kB / 433.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.1208, allocations: 4 kB / 433.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003937/0.1212, allocations: 249.4 kB / 433.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.1212, allocations: 4 kB / 433.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1212, allocations: 4 kB / 434 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1212, allocations: 4 kB / 434 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.1214, allocations: 35.86 kB / 434 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1214, allocations: 7.938 kB / 434 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1215, allocations: 27.83 kB / 434 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.097e-05/0.1215, allocations: 16 kB / 434 MB, free: 12.55 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.0001579/0.1217, allocations: 161.9 kB / 434.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.06e-05/0.1217, allocations: 23.89 kB / 434.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.1217, allocations: 12.84 kB / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1217, allocations: 4 kB / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1218, allocations: 0 / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.1218, allocations: 0 / 434.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007468/0.1225, allocations: 0.5831 MB / 434.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1225, allocations: 4 kB / 434.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-05/0.1226, allocations: 19.92 kB / 434.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1226, allocations: 0 / 434.8 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1226, allocations: 11.94 kB / 434.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1226, allocations: 0 / 434.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1226, allocations: 0 / 434.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003259/0.1229, allocations: 280.1 kB / 435.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.123, allocations: 89.06 kB / 435.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.123, allocations: 11.92 kB / 435.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.1231, allocations: 4 kB / 435.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.999e-05/0.1232, allocations: 23.97 kB / 435.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1232, allocations: 8 kB / 435.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.345e-05/0.1232, allocations: 97.64 kB / 435.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1232, allocations: 0 / 435.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.1235, allocations: 51.84 kB / 435.4 MB, free: 11.06 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,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.0006573/0.1242, allocations: 0.8184 MB / 436.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003375/0.1245, allocations: 168.7 kB / 436.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1245, allocations: 0.5625 kB / 436.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.1247, allocations: 83.56 kB / 436.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.125, allocations: 27.92 kB / 436.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.1273, allocations: 2.051 MB / 438.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.1277, allocations: 0.7403 MB / 439.3 MB, free: 6.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.364e-05/0.1278, allocations: 17.95 kB / 439.3 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1279, allocations: 63.41 kB / 439.4 MB, free: 6.895 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1279, allocations: 0 / 439.4 MB, free: 6.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.1531, allocations: 3.484 MB / 442.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.755, allocations: 11.98 kB / 442.9 MB, free: 3.488 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.536867009010166]