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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008412/0.0008413, allocations: 96.62 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008347/0.0008348, allocations: 176.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB 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.0004303/0.0004303, allocations: 8 kB / 281.5 MB, free: 3.328 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 47.58 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002093/0.1037, allocations: 1.425 MB / 330.5 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006182/0.1044, allocations: 279.1 kB / 330.7 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.716e-05/0.1045, allocations: 4 kB / 330.7 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.1046, allocations: 23.8 kB / 330.8 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.561e-05/0.1047, allocations: 3.938 kB / 330.8 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.105, allocations: 103.9 kB / 330.9 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.1053, allocations: 251.5 kB / 331.1 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.1056, allocations: 161.9 kB / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.993e-05/0.1057, allocations: 75.64 kB / 331.3 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1058, allocations: 75.61 kB / 331.4 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.142e-05/0.1059, allocations: 12 kB / 331.4 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.283e-05/0.1059, allocations: 12 kB / 331.4 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1061, allocations: 51.83 kB / 331.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.1062, allocations: 109.2 kB / 331.6 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.1065, allocations: 207.5 kB / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1065, allocations: 0 / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1065, allocations: 0 / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.1065, allocations: 0 / 331.8 MB, free: 0.8945 MB / 270.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.0007977/0.1073, allocations: 450 kB / 332.2 MB, free: 404 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1074, allocations: 8.031 kB / 332.3 MB, free: 396 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.63e-05/0.1075, allocations: 62.73 kB / 332.3 MB, free: 324 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.579e-05/0.1075, allocations: 20.75 kB / 332.3 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.1079, allocations: 236 kB / 332.6 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.1079, allocations: 20.94 kB / 332.6 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.108, allocations: 32.42 kB / 332.6 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.1084, allocations: 270.5 kB / 332.9 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1084, allocations: 3.938 kB / 332.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1085, allocations: 19.94 kB / 332.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.1085, allocations: 4 kB / 332.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.1088, allocations: 161.6 kB / 333.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.1099, allocations: 0.9711 MB / 334 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.1102, allocations: 158.7 kB / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1104, allocations: 72.83 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.1104, allocations: 4 kB / 334.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.1106, allocations: 111.4 kB / 334.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.1106, allocations: 0 / 334.4 MB, free: 14.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004143/0.111, allocations: 213.8 kB / 334.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.1111, allocations: 59.41 kB / 334.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.1113, allocations: 160.9 kB / 334.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.1114, allocations: 37.7 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002884/0.1116, allocations: 140.5 kB / 335 MB, free: 13.47 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.1117, allocations: 59.2 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-05/0.1118, allocations: 49.69 kB / 335.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003517/0.1121, allocations: 334.8 kB / 335.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1123, allocations: 68.56 kB / 335.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.1124, allocations: 137.8 kB / 335.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/0.1127, allocations: 196.2 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1127, allocations: 0 / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004172/0.1131, allocations: 249.2 kB / 336 MB, free: 12.31 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.1132, allocations: 4 kB / 336 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1132, allocations: 4 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1132, allocations: 7.984 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1133, allocations: 31.92 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.1133, allocations: 4 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1135, allocations: 31.62 kB / 336.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.1135, allocations: 24.27 kB / 336.1 MB, free: 12.21 MB / 286.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.condition,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.0001606/0.1137, allocations: 152.3 kB / 336.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.1137, allocations: 15.84 kB / 336.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.1141, allocations: 186.4 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1141, allocations: 8 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1141, allocations: 0 / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1141, allocations: 0 / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008158/0.1149, allocations: 0.5988 MB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1149, allocations: 0 / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.136e-05/0.115, allocations: 19.88 kB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.115, allocations: 0 / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.115, allocations: 11.98 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1151, allocations: 0 / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1151, allocations: 3.984 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.1154, allocations: 275.2 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.1154, allocations: 96.8 kB / 337.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1154, allocations: 11.94 kB / 337.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.1155, allocations: 4 kB / 337.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.1156, allocations: 19.97 kB / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.1156, allocations: 8 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.781e-05/0.1157, allocations: 99.25 kB / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1157, allocations: 0 / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.116, allocations: 55.84 kB / 337.7 MB, free: 10.55 MB / 286.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.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0006728/0.1167, allocations: 0.8141 MB / 338.5 MB, free: 9.707 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003444/0.1171, allocations: 180.1 kB / 338.7 MB, free: 9.531 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1171, allocations: 8.188 kB / 338.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1172, allocations: 79.91 kB / 338.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.1175, allocations: 23.92 kB / 338.8 MB, free: 9.422 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.1198, allocations: 2.103 MB / 340.9 MB, free: 7.188 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.1202, allocations: 0.7404 MB / 341.6 MB, free: 6.422 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.386e-05/0.1203, allocations: 17.95 kB / 341.7 MB, free: 6.406 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1204, allocations: 63.41 kB / 341.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1204, allocations: 0 / 341.7 MB, free: 6.344 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01348/0.1339, allocations: 3.289 MB / 345 MB, free: 3.059 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.1341, allocations: 218.1 kB / 345.2 MB, free: 2.785 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.014, allocations: 4 kB / 345.2 MB, free: 2.781 MB / 286.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches