Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001343/0.001343, allocations: 122.2 kB / 18.45 MB, free: 4.457 MB / 14.72 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.001314/0.001314, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 207.6 MB / 231.8 MB, free: 4.012 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 55.92 kB / 342.2 MB, free: 10.03 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1063, allocations: 49.12 MB / 391.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003369/0.1096, allocations: 1.695 MB / 393 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007281/0.1103, allocations: 263.2 kB / 393.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1105, allocations: 4 kB / 393.3 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.1106, allocations: 27.69 kB / 393.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.664e-05/0.1107, allocations: 19.78 kB / 393.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.1111, allocations: 119.8 kB / 393.5 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.1115, allocations: 267.6 kB / 393.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.1118, allocations: 153.5 kB / 393.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.1119, allocations: 83.72 kB / 394 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1121, allocations: 103.5 kB / 394.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.305e-05/0.1121, allocations: 28 kB / 394.1 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.736e-05/0.1122, allocations: 36 kB / 394.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.083e-05/0.1123, allocations: 59.81 kB / 394.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1124, allocations: 99.47 kB / 394.3 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.1128, allocations: 243 kB / 394.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1128, allocations: 0 / 394.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1128, allocations: 3.938 kB / 394.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1128, allocations: 3.938 kB / 394.5 MB, free: 5.555 MB / 318.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.0007827/0.1136, allocations: 493.9 kB / 395 MB, free: 5.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1136, allocations: 16.02 kB / 395 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.419e-05/0.1137, allocations: 54.73 kB / 395.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.1138, allocations: 24.8 kB / 395.1 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.1141, allocations: 236 kB / 395.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.1142, allocations: 20.94 kB / 395.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.1142, allocations: 28.38 kB / 395.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.1147, allocations: 278.5 kB / 395.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1147, allocations: 3.938 kB / 395.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.1147, allocations: 12 kB / 395.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.1148, allocations: 4 kB / 395.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.1151, allocations: 169.6 kB / 395.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.1163, allocations: 0.9635 MB / 396.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1166, allocations: 142.7 kB / 396.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1167, allocations: 68.77 kB / 397 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1167, allocations: 8 kB / 397 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.117, allocations: 123 kB / 397.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.117, allocations: 0 / 397.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005036/0.1175, allocations: 213.3 kB / 397.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.992e-05/0.1176, allocations: 55.41 kB / 397.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.1177, allocations: 153.7 kB / 397.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.1178, allocations: 41.69 kB / 397.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.1179, allocations: 148.7 kB / 397.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.278e-05/0.118, allocations: 55.58 kB / 397.8 MB, free: 2.043 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1181, allocations: 85.95 kB / 397.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1183, allocations: 326.8 kB / 398.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1184, allocations: 60.62 kB / 398.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.1186, allocations: 145.7 kB / 398.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.1189, allocations: 188.4 kB / 398.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1189, allocations: 0 / 398.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004213/0.1194, allocations: 249.3 kB / 398.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.1194, allocations: 12.28 kB / 398.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1194, allocations: 0 / 398.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.393e-05/0.1194, allocations: 4 kB / 398.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.1196, allocations: 35.92 kB / 398.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.207e-05/0.1196, allocations: 11.92 kB / 398.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1198, allocations: 31.77 kB / 398.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.1198, allocations: 12 kB / 398.9 MB, free: 0.8203 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0002158/0.12, allocations: 156.3 kB / 399.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.1201, allocations: 11.95 kB / 399.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004216/0.1205, allocations: 198.3 kB / 399.3 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1205, allocations: 0 / 399.3 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1205, allocations: 0 / 399.3 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/0.1205, allocations: 11.97 kB / 399.3 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009066/0.1214, allocations: 0.5792 MB / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1214, allocations: 0 / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.374e-05/0.1215, allocations: 15.98 kB / 399.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1215, allocations: 3.938 kB / 399.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.1215, allocations: 19.94 kB / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1215, allocations: 0 / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.1215, allocations: 0 / 399.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000379/0.1219, allocations: 279.6 kB / 400.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.182e-05/0.122, allocations: 96.89 kB / 400.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.122, allocations: 7.984 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-05/0.1221, allocations: 8 kB / 400.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.1222, allocations: 15.97 kB / 400.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.1222, allocations: 16 kB / 400.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.072e-05/0.1223, allocations: 95.27 kB / 400.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1223, allocations: 0 / 400.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003436/0.1226, allocations: 47.89 kB / 400.5 MB, free: 15.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007471/0.1234, allocations: 0.8256 MB / 401.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.1237, allocations: 171.7 kB / 401.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1237, allocations: 0 / 401.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.1239, allocations: 75.84 kB / 401.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.1242, allocations: 19.91 kB / 401.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.1267, allocations: 2.055 MB / 403.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.1272, allocations: 0.7402 MB / 404.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.1273, allocations: 21.94 kB / 404.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001395/0.1274, allocations: 67.41 kB / 404.4 MB, free: 11 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1274, allocations: 0 / 404.4 MB, free: 11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.1555, allocations: 3.694 MB / 408.1 MB, free: 7.258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.19/8.346, allocations: 15.8 kB / 408.1 MB, free: 7.242 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.803391951136291]