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.001038/0.001038, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.0009705/0.0009702, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.5/1.5, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002981/0.0002985, allocations: 7.984 kB / 300.9 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1294, allocations: 50.41 MB / 351.3 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002108/0.1315, allocations: 1.409 MB / 352.7 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007125/0.1323, allocations: 299.1 kB / 353 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1325, allocations: 4 kB / 353 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1326, allocations: 27.8 kB / 353.1 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.1327, allocations: 7.922 kB / 353.1 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.1331, allocations: 87.84 kB / 353.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.1335, allocations: 235.3 kB / 353.4 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.1338, allocations: 145.8 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.752e-05/0.1339, allocations: 75.7 kB / 353.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.134, allocations: 79.59 kB / 353.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1341, allocations: 12 kB / 353.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.659e-05/0.1342, allocations: 16 kB / 353.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.914e-05/0.1342, allocations: 39.84 kB / 353.7 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.463e-05/0.1343, allocations: 57.58 kB / 353.8 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.1347, allocations: 159.6 kB / 354 MB, free: 1.051 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1347, allocations: 4 kB / 354 MB, free: 1.047 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1347, allocations: 0 / 354 MB, free: 1.047 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1347, allocations: 4 kB / 354 MB, free: 1.043 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.0007356/0.1355, allocations: 446.8 kB / 354.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.1355, allocations: 8.031 kB / 354.4 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.036e-05/0.1356, allocations: 66.53 kB / 354.5 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.573e-05/0.1357, allocations: 19.81 kB / 354.5 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.136, allocations: 234.6 kB / 354.7 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.1361, allocations: 28.56 kB / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.172e-05/0.1361, allocations: 28 kB / 354.8 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1366, allocations: 266 kB / 355 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.1366, allocations: 7.922 kB / 355 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.1367, allocations: 15.95 kB / 355.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1367, allocations: 4 kB / 355.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.137, allocations: 165.6 kB / 355.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.1382, allocations: 0.9752 MB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.1386, allocations: 169.9 kB / 356.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.1388, allocations: 86.09 kB / 356.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.1388, allocations: 4.172 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.1391, allocations: 141.2 kB / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.1391, allocations: 0 / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005224/0.1397, allocations: 223.6 kB / 356.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.1398, allocations: 84.97 kB / 356.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.1399, allocations: 165.4 kB / 357.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.14, allocations: 37.7 kB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001197/0.1401, allocations: 136.6 kB / 357.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.58e-05/0.1402, allocations: 63.19 kB / 357.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.1402, allocations: 4 kB / 357.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.1404, allocations: 326.8 kB / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1405, allocations: 68.09 kB / 357.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1407, allocations: 132.5 kB / 357.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.1409, allocations: 80.44 kB / 357.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1409, allocations: 0 / 357.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004551/0.1413, allocations: 249.2 kB / 358.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1414, allocations: 8.281 kB / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.1414, allocations: 4 kB / 358.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1414, allocations: 7.938 kB / 358.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1416, allocations: 35.91 kB / 358.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.1416, allocations: 7.938 kB / 358.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.1417, allocations: 31.7 kB / 358.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.1418, allocations: 12 kB / 358.2 MB, free: 12.46 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.0001935/0.142, allocations: 158.4 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.142, allocations: 15.81 kB / 358.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004233/0.1424, allocations: 190.4 kB / 358.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.1425, allocations: 4 kB / 358.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1425, allocations: 0 / 358.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.1425, allocations: 0 / 358.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008411/0.1434, allocations: 0.5914 MB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1434, allocations: 4 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.108e-05/0.1435, allocations: 19.92 kB / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.1435, allocations: 0 / 359.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1435, allocations: 8 kB / 359.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1435, allocations: 3.953 kB / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1435, allocations: 0 / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003432/0.1439, allocations: 292.4 kB / 359.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.1439, allocations: 96.89 kB / 359.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.144, allocations: 8 kB / 359.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.153e-05/0.1441, allocations: 11.97 kB / 359.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.317e-05/0.1441, allocations: 27.92 kB / 359.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1442, allocations: 7.984 kB / 359.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1443, allocations: 102.4 kB / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1443, allocations: 0 / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003333/0.1446, allocations: 55.84 kB / 359.8 MB, free: 10.77 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,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.0007795/0.1454, allocations: 0.826 MB / 360.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003379/0.1458, allocations: 184.2 kB / 360.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1458, allocations: 4.062 kB / 360.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.1459, allocations: 84.34 kB / 360.9 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.1462, allocations: 23.95 kB / 360.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1479, allocations: 0.9841 MB / 361.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.1483, allocations: 0.7407 MB / 362.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.012e-05/0.1484, allocations: 25.95 kB / 362.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.1485, allocations: 59.41 kB / 362.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1485, allocations: 0 / 362.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.1671, allocations: 3.366 MB / 366.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000265/0.1674, allocations: 187.8 kB / 366.3 MB, free: 4.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.261, allocations: 0 / 366.3 MB, free: 4.242 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