Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001435/0.001435, allocations: 117.4 kB / 18.45 MB, free: 4.586 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.001523/0.001523, allocations: 189.2 kB / 21.39 MB, free: 1.652 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.509/1.509, allocations: 207.6 MB / 231.8 MB, free: 4.125 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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001697/0.001697, allocations: 59.91 kB / 342.2 MB, free: 10.07 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.104, allocations: 49.12 MB / 391.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003736/0.1077, allocations: 1.663 MB / 393 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007131/0.1085, allocations: 259.2 kB / 393.3 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.775e-05/0.1086, allocations: 7.938 kB / 393.3 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.1087, allocations: 31.67 kB / 393.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.131e-05/0.1088, allocations: 11.81 kB / 393.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.1092, allocations: 119.8 kB / 393.4 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00037/0.1096, allocations: 271.5 kB / 393.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.1099, allocations: 162.9 kB / 393.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.11, allocations: 87.7 kB / 393.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.1101, allocations: 111.5 kB / 394.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.016e-05/0.1102, allocations: 24 kB / 394.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.054e-05/0.1103, allocations: 31.92 kB / 394.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.808e-05/0.1103, allocations: 55.84 kB / 394.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.1105, allocations: 111.5 kB / 394.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.1108, allocations: 254.9 kB / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1108, allocations: 0 / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1108, allocations: 0 / 394.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1108, allocations: 0 / 394.5 MB, free: 5.602 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.0007821/0.1116, allocations: 497.8 kB / 395 MB, free: 5.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1117, allocations: 12.03 kB / 395 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.871e-05/0.1117, allocations: 58.73 kB / 395.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.1118, allocations: 24.8 kB / 395.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.1122, allocations: 236 kB / 395.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.1122, allocations: 24.94 kB / 395.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.808e-05/0.1123, allocations: 28.36 kB / 395.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004632/0.1127, allocations: 278.5 kB / 395.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1127, allocations: 3.938 kB / 395.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.1128, allocations: 4 kB / 395.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1128, allocations: 8 kB / 395.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.1131, allocations: 169.6 kB / 395.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.1144, allocations: 0.9596 MB / 396.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.1147, allocations: 134.8 kB / 396.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1148, allocations: 68.77 kB / 397 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.1148, allocations: 4 kB / 397 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.115, allocations: 127 kB / 397.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.834e-06/0.115, allocations: 0 / 397.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00049/0.1155, allocations: 205.5 kB / 397.3 MB, free: 2.586 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.1156, allocations: 63.33 kB / 397.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.1157, allocations: 158.4 kB / 397.5 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.1158, allocations: 37.7 kB / 397.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.1159, allocations: 152.7 kB / 397.7 MB, free: 2.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.735e-05/0.116, allocations: 59.53 kB / 397.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.1161, allocations: 74.02 kB / 397.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1162, allocations: 338.7 kB / 398.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.1163, allocations: 64.62 kB / 398.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1165, allocations: 137.8 kB / 398.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.1168, allocations: 184.4 kB / 398.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1168, allocations: 4 kB / 398.6 MB, free: 1.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000406/0.1172, allocations: 257.5 kB / 398.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1172, allocations: 8 kB / 398.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1172, allocations: 7.984 kB / 398.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1173, allocations: 7.938 kB / 398.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.1174, allocations: 31.92 kB / 398.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1174, allocations: 4 kB / 398.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.499e-05/0.1175, allocations: 23.84 kB / 398.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.018e-05/0.1175, allocations: 19.98 kB / 398.9 MB, free: 0.8672 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.0001667/0.1177, allocations: 164.2 kB / 399.1 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.1177, allocations: 15.91 kB / 399.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003577/0.1181, allocations: 186.7 kB / 399.3 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1181, allocations: 4 kB / 399.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1181, allocations: 0 / 399.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1181, allocations: 0 / 399.3 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008046/0.1189, allocations: 0.591 MB / 399.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1189, allocations: 0 / 399.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.49e-05/0.119, allocations: 23.92 kB / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.119, allocations: 7.938 kB / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.119, allocations: 0 / 399.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.119, allocations: 4 kB / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.119, allocations: 0 / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.1193, allocations: 279.7 kB / 400.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.1194, allocations: 96.89 kB / 400.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.1194, allocations: 0 / 400.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.1195, allocations: 8 kB / 400.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.1196, allocations: 23.97 kB / 400.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.1196, allocations: 12 kB / 400.3 MB, free: 15.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.029e-05/0.1197, allocations: 107.3 kB / 400.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1197, allocations: 0 / 400.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002947/0.1199, allocations: 51.89 kB / 400.5 MB, free: 15.19 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,step.active,transition1.enableFire,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.0007102/0.1207, allocations: 0.8217 MB / 401.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003242/0.121, allocations: 171.7 kB / 401.5 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.121, allocations: 4 kB / 401.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.1211, allocations: 67.91 kB / 401.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.1214, allocations: 31.83 kB / 401.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.1238, allocations: 2.067 MB / 403.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.1242, allocations: 0.7361 MB / 404.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.399e-05/0.1243, allocations: 25.94 kB / 404.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.1244, allocations: 67.41 kB / 404.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1244, allocations: 0 / 404.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.151, allocations: 3.737 MB / 408.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.38, allocations: 11.73 kB / 408.2 MB, free: 7.227 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.873414974659681]