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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009827/0.0009825, 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.001235/0.001235, 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.643/1.643, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005118/0.0005117, allocations: 12 kB / 281.5 MB, free: 3.34 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1014, allocations: 47.58 MB / 329 MB, free: 3.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001965/0.1034, allocations: 1.405 MB / 330.5 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006377/0.104, allocations: 271.1 kB / 330.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.892e-05/0.1041, allocations: 0 / 330.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.1043, allocations: 19.88 kB / 330.7 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.133e-05/0.1043, allocations: 19.84 kB / 330.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.1047, allocations: 103.8 kB / 330.9 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000433/0.1052, allocations: 247.5 kB / 331.1 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000299/0.1055, allocations: 171.3 kB / 331.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.089e-05/0.1056, allocations: 67.72 kB / 331.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.1057, allocations: 75.61 kB / 331.4 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.882e-05/0.1058, allocations: 8 kB / 331.4 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002075/0.106, allocations: 31.92 kB / 331.4 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-05/0.106, allocations: 39.83 kB / 331.5 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1061, allocations: 109.2 kB / 331.6 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.1064, allocations: 211.5 kB / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1064, allocations: 0 / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1064, allocations: 0 / 331.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1064, 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.000711/0.1072, allocations: 450.1 kB / 332.2 MB, free: 416 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.1072, allocations: 16.03 kB / 332.3 MB, free: 400 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.505e-05/0.1073, allocations: 62.72 kB / 332.3 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.365e-05/0.1074, allocations: 20.75 kB / 332.3 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.1077, allocations: 232 kB / 332.6 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.1077, allocations: 20.94 kB / 332.6 MB, free: 16 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.347e-05/0.1078, allocations: 32.42 kB / 332.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004584/0.1083, allocations: 270.3 kB / 332.9 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1083, allocations: 7.938 kB / 332.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.1083, allocations: 12 kB / 332.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.1083, allocations: 8 kB / 332.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.1087, allocations: 165.6 kB / 333.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.11, allocations: 0.9671 MB / 334 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002605/0.1103, allocations: 158.8 kB / 334.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1104, allocations: 72.78 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.1104, allocations: 4 kB / 334.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.1106, allocations: 115.3 kB / 334.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.1107, allocations: 0 / 334.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003951/0.1111, allocations: 213.9 kB / 334.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.1111, allocations: 55.41 kB / 334.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.1112, allocations: 161.4 kB / 334.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.1113, allocations: 45.58 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.1114, allocations: 144.5 kB / 335 MB, free: 13.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.1114, allocations: 55.25 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.924e-05/0.1115, allocations: 53.69 kB / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1117, allocations: 334.7 kB / 335.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1118, allocations: 64.62 kB / 335.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.112, allocations: 141.8 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.1122, allocations: 192.3 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1122, allocations: 4 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003681/0.1126, allocations: 249.2 kB / 336.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1126, allocations: 8 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.1127, allocations: 0 / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1127, allocations: 4 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.1128, allocations: 31.92 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.1128, allocations: 7.984 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.1129, allocations: 39.97 kB / 336.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.113, allocations: 15.94 kB / 336.2 MB, free: 12.2 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.0001549/0.1131, allocations: 152.4 kB / 336.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.1132, allocations: 11.91 kB / 336.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003432/0.1135, allocations: 194.7 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1135, allocations: 4 kB / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1136, allocations: 0 / 336.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1136, allocations: 7.984 kB / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.1145, allocations: 0.5948 MB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1146, allocations: 3.938 kB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.1146, allocations: 15.94 kB / 337.1 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1147, allocations: 0 / 337.1 MB, free: 11.15 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1147, allocations: 8 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1147, allocations: 3.984 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1147, allocations: 4 kB / 337.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.115, allocations: 267.3 kB / 337.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.1152, allocations: 100.8 kB / 337.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.1152, allocations: 8 kB / 337.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.1153, allocations: 4 kB / 337.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.1154, allocations: 19.97 kB / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1154, allocations: 4 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.677e-05/0.1154, allocations: 107.3 kB / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1155, allocations: 0 / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002905/0.1157, allocations: 47.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,step.localActive,transition1.enableFire,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.0006673/0.1164, allocations: 0.8295 MB / 338.5 MB, free: 9.695 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.1168, allocations: 191.7 kB / 338.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1168, allocations: 0 / 338.7 MB, free: 9.508 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.1169, allocations: 87.89 kB / 338.8 MB, free: 9.422 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1172, allocations: 16 kB / 338.8 MB, free: 9.406 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.1197, allocations: 2.103 MB / 340.9 MB, free: 7.172 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1202, allocations: 0.7479 MB / 341.7 MB, free: 6.398 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.366e-05/0.1203, allocations: 21.95 kB / 341.7 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.735e-05/0.1204, allocations: 59.41 kB / 341.7 MB, free: 6.32 MB / 286.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1204, allocations: 4 kB / 341.7 MB, free: 6.316 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01378/0.1342, allocations: 3.316 MB / 345.1 MB, free: 3 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/0.1344, allocations: 206.2 kB / 345.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/1.976, allocations: 15.94 kB / 345.3 MB, free: 2.723 MB / 286.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches