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.0009878/0.000988, allocations: 98.81 kB / 16.95 MB, free: 6.449 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.001022/0.001023, allocations: 183.6 kB / 17.84 MB, free: 6.004 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.722/1.722, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004544/0.0004545, allocations: 8 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1079, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002041/0.11, allocations: 1.402 MB / 329.8 MB, free: 2.578 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006834/0.1107, allocations: 271.2 kB / 330.1 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.1108, allocations: 7.938 kB / 330.1 MB, free: 2.305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.1109, allocations: 15.88 kB / 330.1 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.215e-05/0.111, allocations: 11.86 kB / 330.1 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003668/0.1114, allocations: 83.91 kB / 330.2 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1117, allocations: 235.5 kB / 330.5 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002925/0.112, allocations: 145.9 kB / 330.6 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.046e-05/0.1121, allocations: 71.7 kB / 330.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.1123, allocations: 75.61 kB / 330.7 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.1123, allocations: 12 kB / 330.8 MB, free: 1.664 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.011e-05/0.1124, allocations: 12 kB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.896e-05/0.1125, allocations: 47.83 kB / 330.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.419e-05/0.1125, allocations: 49.64 kB / 330.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.1128, allocations: 159.9 kB / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.1128, allocations: 0 / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1128, allocations: 0 / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1128, allocations: 4 kB / 331 MB, free: 1.391 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.0006847/0.1135, allocations: 461.7 kB / 331.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1136, allocations: 8.031 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.51e-05/0.1137, allocations: 58.55 kB / 331.5 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.1137, allocations: 23.75 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.114, allocations: 230.7 kB / 331.8 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.1141, allocations: 20.56 kB / 331.8 MB, free: 0.5 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.1141, allocations: 31.95 kB / 331.8 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.1145, allocations: 274 kB / 332.1 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1146, allocations: 4 kB / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.1146, allocations: 8 kB / 332.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1146, allocations: 8 kB / 332.1 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002693/0.1149, allocations: 157.6 kB / 332.3 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.116, allocations: 0.9752 MB / 333.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.1162, allocations: 151.4 kB / 333.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1163, allocations: 73.2 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.1164, allocations: 8.188 kB / 333.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.1166, allocations: 111.5 kB / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.1166, allocations: 0 / 333.6 MB, free: 14.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004419/0.117, allocations: 209.9 kB / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.1171, allocations: 63.33 kB / 333.9 MB, free: 14.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1173, allocations: 161.5 kB / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.1173, allocations: 33.7 kB / 334 MB, free: 14.11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1174, allocations: 140.5 kB / 334.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.178e-05/0.1175, allocations: 59.2 kB / 334.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.1175, allocations: 8 kB / 334.2 MB, free: 13.9 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1177, allocations: 322.8 kB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1178, allocations: 60.62 kB / 334.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1179, allocations: 149.7 kB / 334.8 MB, free: 13.34 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.1181, allocations: 71.97 kB / 334.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1181, allocations: 0 / 334.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003842/0.1185, allocations: 245.2 kB / 335.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1185, allocations: 7.938 kB / 335.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.1185, allocations: 7.953 kB / 335.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1186, allocations: 4 kB / 335.1 MB, free: 13.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.1187, allocations: 31.91 kB / 335.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.1187, allocations: 4 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.1188, allocations: 28.06 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.1189, allocations: 16 kB / 335.2 MB, free: 12.93 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001807/0.1191, allocations: 160.4 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.1191, allocations: 11.81 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003298/0.1194, allocations: 194.3 kB / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1195, allocations: 7.953 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1195, allocations: 0 / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.1195, allocations: 0 / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006638/0.1201, allocations: 0.5993 MB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1202, allocations: 4 kB / 336.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.619e-05/0.1202, allocations: 12 kB / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1202, allocations: 0 / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.1203, allocations: 7.984 kB / 336.2 MB, free: 11.87 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.1203, allocations: 7.938 kB / 336.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1203, allocations: 0 / 336.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.1206, allocations: 271.2 kB / 336.4 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.1206, allocations: 92.91 kB / 336.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.1207, allocations: 8 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.589e-05/0.1208, allocations: 4 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.232e-05/0.1209, allocations: 31.89 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.1209, allocations: 4 kB / 336.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.1209, allocations: 96.39 kB / 336.7 MB, free: 11.33 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1209, allocations: 4 kB / 336.7 MB, free: 11.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.1212, allocations: 51.84 kB / 336.7 MB, free: 11.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005853/0.1218, allocations: 0.8179 MB / 337.5 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002975/0.1221, allocations: 184.1 kB / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.1222, allocations: 4 kB / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.1223, allocations: 75.92 kB / 337.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1226, allocations: 23.98 kB / 337.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.1241, allocations: 0.9713 MB / 338.8 MB, free: 9.102 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.1245, allocations: 0.7367 MB / 339.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.899e-05/0.1246, allocations: 29.94 kB / 339.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.1247, allocations: 59.48 kB / 339.6 MB, free: 8.254 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1247, allocations: 0 / 339.6 MB, free: 8.254 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.139, allocations: 3.33 MB / 342.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.1392, allocations: 200 kB / 343.1 MB, free: 4.68 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.027, allocations: 0 / 343.1 MB, free: 4.68 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat