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.001762/0.001762, allocations: 120.5 kB / 17.79 MB, free: 5.133 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.001966/0.001966, allocations: 215.2 kB / 20.75 MB, free: 2.18 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.405/1.405, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001647/0.001647, allocations: 47.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1052, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005063/0.1103, allocations: 1.721 MB / 428 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.1115, allocations: 295.1 kB / 428.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.1117, allocations: 4 kB / 428.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.1118, allocations: 27.67 kB / 428.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.112, allocations: 19.81 kB / 428.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005896/0.1126, allocations: 115.8 kB / 428.5 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000576/0.1131, allocations: 271.5 kB / 428.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004171/0.1135, allocations: 161.5 kB / 428.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.1137, allocations: 87.7 kB / 429 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.1139, allocations: 95.59 kB / 429.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.14e-05/0.114, allocations: 24 kB / 429.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.1141, allocations: 39.92 kB / 429.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1142, allocations: 63.77 kB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1144, allocations: 95.47 kB / 429.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.1149, allocations: 258.9 kB / 429.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1149, allocations: 0 / 429.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1149, allocations: 4 kB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1149, allocations: 0 / 429.5 MB, free: 1.551 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.001066/0.116, allocations: 498.4 kB / 430 MB, free: 1.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1161, allocations: 8.031 kB / 430 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.1162, allocations: 54.73 kB / 430.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000426/0.1166, allocations: 44.77 kB / 430.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.1171, allocations: 236 kB / 430.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/0.1171, allocations: 24.92 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.1172, allocations: 28.38 kB / 430.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.1179, allocations: 270.6 kB / 430.7 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.1179, allocations: 7.875 kB / 430.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.118, allocations: 8 kB / 430.7 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.118, allocations: 8 kB / 430.7 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005242/0.1185, allocations: 161.6 kB / 430.9 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.1204, allocations: 0.9596 MB / 431.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005061/0.1209, allocations: 161.4 kB / 432 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.1211, allocations: 69.69 kB / 432 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.1212, allocations: 4 kB / 432 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.1215, allocations: 133.1 kB / 432.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.504e-06/0.1215, allocations: 4 kB / 432.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007253/0.1222, allocations: 216.8 kB / 432.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.1223, allocations: 85.11 kB / 432.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.1226, allocations: 157.7 kB / 432.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.943e-05/0.1226, allocations: 37.7 kB / 432.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1228, allocations: 144.7 kB / 432.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.1229, allocations: 63.52 kB / 432.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.123, allocations: 81.59 kB / 433 MB, free: 13.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.1233, allocations: 334.8 kB / 433.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.1235, allocations: 63.97 kB / 433.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.1238, allocations: 140.3 kB / 433.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.1243, allocations: 196.8 kB / 433.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1243, allocations: 0 / 433.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006871/0.125, allocations: 257.2 kB / 433.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.125, allocations: 8 kB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.125, allocations: 288 / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.125, allocations: 11.94 kB / 433.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.1252, allocations: 31.92 kB / 434 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.1252, allocations: 4 kB / 434 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.1254, allocations: 35.83 kB / 434 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.1255, allocations: 11.98 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.0002324/0.1257, allocations: 165.6 kB / 434.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.1257, allocations: 11.91 kB / 434.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.045e-05/0.1258, allocations: 24.83 kB / 434.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.1258, allocations: 8 kB / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1258, allocations: 0 / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1258, allocations: 0 / 434.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.127, allocations: 0.5752 MB / 434.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.127, allocations: 0 / 434.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.1272, allocations: 19.97 kB / 434.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1272, allocations: 0 / 434.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.1272, allocations: 11.94 kB / 434.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1272, allocations: 0 / 434.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1272, allocations: 4 kB / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00053/0.1277, allocations: 279.1 kB / 435.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.643e-05/0.1278, allocations: 89.06 kB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.1279, allocations: 3.938 kB / 435.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.128, allocations: 11.98 kB / 435.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.1281, allocations: 19.97 kB / 435.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1281, allocations: 12 kB / 435.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.661e-05/0.1282, allocations: 98.02 kB / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1282, allocations: 0 / 435.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005493/0.1288, allocations: 55.84 kB / 435.4 MB, free: 11.23 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.001001/0.1298, allocations: 0.8145 MB / 436.2 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.1303, allocations: 168 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.1303, allocations: 0 / 436.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.1306, allocations: 79 kB / 436.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.131, allocations: 16 kB / 436.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003683/0.1347, allocations: 2.063 MB / 438.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.1352, allocations: 0.7365 MB / 439.3 MB, free: 7.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1354, allocations: 25.94 kB / 439.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.1355, allocations: 59.36 kB / 439.3 MB, free: 7.078 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1355, allocations: 0 / 439.3 MB, free: 7.078 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.1683, allocations: 3.487 MB / 442.8 MB, free: 3.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/8.005, allocations: 1.828 kB / 442.8 MB, free: 3.68 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.496312139788643]