Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_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.001034/0.001034, allocations: 96.91 kB / 16.3 MB, free: 5.996 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.0009786/0.0009786, allocations: 183.2 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003182, allocations: 5.438 kB / 300.8 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.132, allocations: 50.42 MB / 351.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002145/0.1342, allocations: 1.404 MB / 352.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006795/0.1349, allocations: 303.1 kB / 352.9 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.135, allocations: 4 kB / 352.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.1351, allocations: 27.8 kB / 353 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.204e-05/0.1352, allocations: 11.92 kB / 353 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1356, allocations: 83.89 kB / 353 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.1358, allocations: 167.6 kB / 353.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.1362, allocations: 153.8 kB / 353.4 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.641e-05/0.1363, allocations: 67.77 kB / 353.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.1364, allocations: 75.61 kB / 353.5 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.1364, allocations: 8 kB / 353.5 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.216e-05/0.1365, allocations: 23.92 kB / 353.5 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.933e-05/0.1366, allocations: 39.84 kB / 353.6 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.129e-05/0.1367, allocations: 57.58 kB / 353.6 MB, free: 9.355 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.1369, allocations: 159.6 kB / 353.8 MB, free: 9.199 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.1369, allocations: 4 kB / 353.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1369, allocations: 0 / 353.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1369, allocations: 0 / 353.8 MB, free: 9.195 MB / 286.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.000654/0.1376, allocations: 438.6 kB / 354.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1376, allocations: 12.03 kB / 354.2 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.863e-05/0.1377, allocations: 58.55 kB / 354.3 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.1378, allocations: 23.77 kB / 354.3 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002507/0.138, allocations: 230.7 kB / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.1381, allocations: 36.44 kB / 354.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.1381, allocations: 24 kB / 354.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004238/0.1385, allocations: 274 kB / 354.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.1386, allocations: 0 / 354.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.1386, allocations: 8 kB / 354.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1386, allocations: 7.953 kB / 354.9 MB, free: 7.988 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002825/0.1389, allocations: 169.5 kB / 355 MB, free: 7.824 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.14, allocations: 0.979 MB / 356 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.1403, allocations: 175.8 kB / 356.2 MB, free: 6.59 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1403, allocations: 4.188 kB / 356.2 MB, free: 6.586 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.1406, allocations: 137.2 kB / 356.3 MB, free: 6.434 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.1406, allocations: 0 / 356.3 MB, free: 6.434 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004561/0.1411, allocations: 220 kB / 356.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.1411, allocations: 89.22 kB / 356.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.1413, allocations: 157.6 kB / 356.8 MB, free: 5.945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.1413, allocations: 37.7 kB / 356.8 MB, free: 5.902 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.749e-05/0.1414, allocations: 132.5 kB / 356.9 MB, free: 5.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.565e-05/0.1415, allocations: 67.17 kB / 357 MB, free: 5.703 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.1415, allocations: 8 kB / 357 MB, free: 5.695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1417, allocations: 330.8 kB / 357.3 MB, free: 5.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1418, allocations: 59.97 kB / 357.4 MB, free: 5.305 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001686/0.142, allocations: 140.5 kB / 357.5 MB, free: 5.137 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.1421, allocations: 72.52 kB / 357.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.1421, allocations: 0 / 357.6 MB, free: 5.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003621/0.1425, allocations: 257.2 kB / 357.9 MB, free: 4.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1425, allocations: 6.188 kB / 357.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1425, allocations: 4.281 kB / 357.9 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1425, allocations: 8 kB / 357.9 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.1427, allocations: 31.92 kB / 357.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1427, allocations: 4 kB / 357.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1428, allocations: 39.61 kB / 358 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.1428, allocations: 12 kB / 358 MB, free: 4.707 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: 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.0001473/0.143, allocations: 162.3 kB / 358.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.143, allocations: 11.81 kB / 358.1 MB, free: 4.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003255/0.1434, allocations: 194.4 kB / 358.3 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1434, allocations: 4 kB / 358.3 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1434, allocations: 0 / 358.3 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.1434, allocations: 7.984 kB / 358.3 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000683/0.1441, allocations: 0.5952 MB / 358.9 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1441, allocations: 0 / 358.9 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7e-05/0.1442, allocations: 15.94 kB / 358.9 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1442, allocations: 4 kB / 359 MB, free: 3.645 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.1442, allocations: 11.98 kB / 359 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1442, allocations: 3.938 kB / 359 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1442, allocations: 3.953 kB / 359 MB, free: 3.625 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.1445, allocations: 294.3 kB / 359.3 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.1446, allocations: 96.86 kB / 359.4 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.768e-05/0.1447, allocations: 4 kB / 359.4 MB, free: 3.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.684e-05/0.1448, allocations: 15.88 kB / 359.4 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/0.1448, allocations: 23.97 kB / 359.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.1448, allocations: 8 kB / 359.4 MB, free: 3.148 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.1449, allocations: 95.27 kB / 359.5 MB, free: 3.055 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1449, allocations: 0 / 359.5 MB, free: 3.055 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003075/0.1452, allocations: 51.84 kB / 359.5 MB, free: 3.004 MB / 286.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,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: 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.0006483/0.1459, allocations: 0.9121 MB / 360.5 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002966/0.1462, allocations: 184.2 kB / 360.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.1462, allocations: 4.125 kB / 360.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.1463, allocations: 84.28 kB / 360.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002146/0.1466, allocations: 15.98 kB / 360.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.1486, allocations: 2.335 MB / 363.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.1489, allocations: 0.7445 MB / 363.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.544e-05/0.149, allocations: 21.95 kB / 363.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1491, allocations: 67.47 kB / 363.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1491, allocations: 0 / 363.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.1635, allocations: 3.33 MB / 367.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.1637, allocations: 190.8 kB / 367.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.138, allocations: 0 / 367.4 MB, free: 11.04 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat