Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009263/0.0009265, allocations: 96.64 kB / 17 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009765/0.0009767, allocations: 194.2 kB / 17.91 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002807, allocations: 7.984 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1388, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002189/0.1411, allocations: 1.378 MB / 359.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007912/0.1419, allocations: 303.1 kB / 360 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.142, allocations: 4 kB / 360 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.1422, allocations: 15.81 kB / 360 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.912e-05/0.1422, allocations: 11.92 kB / 360 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.1427, allocations: 99.77 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000355/0.1431, allocations: 235.5 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.1434, allocations: 157.5 kB / 360.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.1435, allocations: 67.78 kB / 360.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.1436, allocations: 71.61 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.1437, allocations: 12 kB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.791e-05/0.1438, allocations: 19.98 kB / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.376e-05/0.1438, allocations: 43.83 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.965e-05/0.1439, allocations: 61.52 kB / 360.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.1442, allocations: 159.7 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.295e-05/0.1442, allocations: 4 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.1442, allocations: 0 / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1442, allocations: 4 kB / 360.9 MB, free: 11.12 MB / 302.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.0008088/0.145, allocations: 458.4 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.272e-05/0.1451, allocations: 8.031 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.432e-05/0.1452, allocations: 62.53 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.922e-05/0.1453, allocations: 23.72 kB / 361.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.1456, allocations: 226.8 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/0.1457, allocations: 28.56 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.352e-05/0.1457, allocations: 27.95 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000544/0.1463, allocations: 274 kB / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1463, allocations: 0 / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.1464, allocations: 12 kB / 362 MB, free: 9.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1464, allocations: 4 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.1468, allocations: 169.5 kB / 362.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.1483, allocations: 0.9752 MB / 363.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.1487, allocations: 170 kB / 363.3 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1488, allocations: 82.06 kB / 363.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.1489, allocations: 4.188 kB / 363.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003477/0.1492, allocations: 142.4 kB / 363.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.1493, allocations: 0 / 363.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005661/0.1498, allocations: 228.5 kB / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/0.1499, allocations: 89.23 kB / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.1501, allocations: 159.7 kB / 364 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.25e-05/0.1502, allocations: 33.7 kB / 364 MB, free: 7.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.1503, allocations: 144.5 kB / 364.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.283e-05/0.1504, allocations: 67.08 kB / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.1504, allocations: 4 kB / 364.3 MB, free: 7.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.1506, allocations: 326.8 kB / 364.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1508, allocations: 67.95 kB / 364.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.1509, allocations: 140.3 kB / 364.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.1511, allocations: 75.88 kB / 364.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1511, allocations: 0 / 364.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004498/0.1516, allocations: 253.8 kB / 365.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.1516, allocations: 6.5 kB / 365.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.1516, allocations: 8.234 kB / 365.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.1517, allocations: 8 kB / 365.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.1518, allocations: 35.92 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.1519, allocations: 4 kB / 365.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.152, allocations: 27.72 kB / 365.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.152, allocations: 19.98 kB / 365.2 MB, free: 6.516 MB / 302.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0002174/0.1523, allocations: 147.6 kB / 365.4 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.1523, allocations: 19.8 kB / 365.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004059/0.1527, allocations: 195 kB / 365.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.1527, allocations: 7.953 kB / 365.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.1528, allocations: 0 / 365.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1528, allocations: 0 / 365.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009033/0.1537, allocations: 0.5954 MB / 366.2 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1537, allocations: 4 kB / 366.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.182e-05/0.1538, allocations: 27.92 kB / 366.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-06/0.1538, allocations: 4 kB / 366.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.1538, allocations: 0 / 366.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.1538, allocations: 4 kB / 366.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.1539, allocations: 3.984 kB / 366.2 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003858/0.1542, allocations: 284 kB / 366.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.319e-05/0.1543, allocations: 96.91 kB / 366.6 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.1544, allocations: 8 kB / 366.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.1545, allocations: 8 kB / 366.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.1545, allocations: 23.95 kB / 366.6 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.1546, allocations: 8 kB / 366.6 MB, free: 4.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.782e-05/0.1546, allocations: 95.27 kB / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.836e-06/0.1547, allocations: 0 / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.155, allocations: 59.69 kB / 366.8 MB, free: 4.828 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007353/0.1557, allocations: 0.8268 MB / 367.6 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.1561, allocations: 191.9 kB / 367.8 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1562, allocations: 4.5 kB / 367.8 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.1563, allocations: 83.91 kB / 367.9 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.1567, allocations: 30.67 kB / 367.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.1587, allocations: 0.992 MB / 368.9 MB, free: 2.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.1591, allocations: 0.7368 MB / 369.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001188/0.1593, allocations: 29.94 kB / 369.7 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.1594, allocations: 59.41 kB / 369.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1594, allocations: 0 / 369.7 MB, free: 1.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2454/0.4048, allocations: 3.375 MB / 373.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/0.405, allocations: 184.2 kB / 373.3 MB, free: 18.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.554, allocations: 0 / 373.3 MB, free: 18.34 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat