Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001771/0.001771, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001983/0.001983, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.494/1.494, allocations: 230.2 MB / 254.5 MB, free: 15.24 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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 63.91 kB / 373.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1113, allocations: 53.31 MB / 426.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002943/0.1142, allocations: 1.69 MB / 428.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006787/0.1149, allocations: 291.1 kB / 428.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.483e-05/0.115, allocations: 4 kB / 428.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.1151, allocations: 27.67 kB / 428.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.604e-05/0.1152, allocations: 15.81 kB / 428.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003926/0.1156, allocations: 119.8 kB / 428.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004153/0.116, allocations: 267.6 kB / 429 MB, free: 2.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.1164, allocations: 170.9 kB / 429.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.1166, allocations: 87.7 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1167, allocations: 99.59 kB / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.796e-05/0.1168, allocations: 24 kB / 429.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.617e-05/0.1168, allocations: 27.98 kB / 429.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.01e-05/0.1169, allocations: 63.83 kB / 429.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.117, allocations: 103.5 kB / 429.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.1174, allocations: 258.9 kB / 429.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1174, allocations: 3.938 kB / 429.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1174, allocations: 0 / 429.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1174, allocations: 0 / 429.9 MB, free: 1.77 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.0007519/0.1181, allocations: 0.4905 MB / 430.3 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1182, allocations: 8.031 kB / 430.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.218e-05/0.1182, allocations: 62.72 kB / 430.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.1184, allocations: 40.78 kB / 430.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.1188, allocations: 224.1 kB / 430.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.1188, allocations: 24.94 kB / 430.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.1189, allocations: 28.38 kB / 430.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.1193, allocations: 270.5 kB / 431 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.1193, allocations: 11.92 kB / 431 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.417e-05/0.1194, allocations: 11.98 kB / 431 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1194, allocations: 8 kB / 431 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.1197, allocations: 161.6 kB / 431.2 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.121, allocations: 0.9635 MB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.1213, allocations: 153.4 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.1215, allocations: 73.58 kB / 432.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1215, allocations: 8 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002227/0.1218, allocations: 129.1 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1218, allocations: 4 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004539/0.1222, allocations: 217.9 kB / 432.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.1223, allocations: 89.11 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1224, allocations: 159.1 kB / 433 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.1225, allocations: 37.7 kB / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1226, allocations: 152.7 kB / 433.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/0.1226, allocations: 55.59 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.1228, allocations: 77.64 kB / 433.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1229, allocations: 334.8 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.123, allocations: 59.77 kB / 433.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.1232, allocations: 152.3 kB / 433.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.1235, allocations: 200.3 kB / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1235, allocations: 0 / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004017/0.1239, allocations: 249.4 kB / 434.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.124, allocations: 4 kB / 434.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.124, allocations: 4 kB / 434.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.124, allocations: 4 kB / 434.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001403/0.1241, allocations: 35.86 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.1241, allocations: 4 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.732e-05/0.1242, allocations: 27.78 kB / 434.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1243, allocations: 19.98 kB / 434.3 MB, free: 12.92 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.0001851/0.1244, allocations: 161.9 kB / 434.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.1245, allocations: 7.953 kB / 434.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.1245, allocations: 24.83 kB / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1245, allocations: 0 / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.1245, allocations: 4 kB / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1245, allocations: 0 / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000858/0.1254, allocations: 0.5792 MB / 435.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1254, allocations: 0 / 435.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.1255, allocations: 23.92 kB / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1255, allocations: 0 / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1255, allocations: 7.938 kB / 435.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.287e-06/0.1255, allocations: 11.98 kB / 435.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1255, allocations: 0 / 435.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.1258, allocations: 276.1 kB / 435.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.808e-05/0.1259, allocations: 92.95 kB / 435.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.1259, allocations: 19.88 kB / 435.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.433e-05/0.126, allocations: 11.98 kB / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.1261, allocations: 11.98 kB / 435.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.1261, allocations: 19.92 kB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.998e-05/0.1262, allocations: 92.95 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1262, allocations: 0 / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.1265, allocations: 51.89 kB / 435.7 MB, free: 11.43 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.0007564/0.1272, allocations: 0.8145 MB / 436.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.1276, allocations: 172.7 kB / 436.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1276, allocations: 0 / 436.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.1277, allocations: 80.12 kB / 436.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.128, allocations: 26.81 kB / 436.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.1306, allocations: 2.062 MB / 438.9 MB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.1311, allocations: 0.7326 MB / 439.6 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.888e-05/0.1312, allocations: 25.94 kB / 439.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.1313, allocations: 59.42 kB / 439.7 MB, free: 7.266 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1313, allocations: 0 / 439.7 MB, free: 7.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.1582, allocations: 3.523 MB / 443.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/8.189, allocations: 11.98 kB / 443.2 MB, free: 3.82 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.850665510166436]