Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008689/0.000869, allocations: 94.45 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008931/0.0008932, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002185, allocations: 4 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1271, allocations: 51.48 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001636/0.1288, allocations: 1.213 MB / 359.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006386/0.1294, allocations: 303.1 kB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.535e-05/0.1295, allocations: 4 kB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.1297, allocations: 19.81 kB / 359.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.473e-05/0.1297, allocations: 3.938 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.1301, allocations: 87.88 kB / 359.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.1304, allocations: 227.5 kB / 360.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.1306, allocations: 142.2 kB / 360.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.669e-05/0.1307, allocations: 63.78 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.1309, allocations: 75.59 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/0.1309, allocations: 12 kB / 360.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.842e-05/0.131, allocations: 16 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.476e-05/0.1311, allocations: 35.84 kB / 360.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.467e-05/0.1311, allocations: 53.64 kB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.1313, allocations: 155.7 kB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1313, allocations: 0 / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1313, allocations: 0 / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1313, allocations: 0 / 360.7 MB, free: 11.37 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005826/0.1319, allocations: 446.8 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.132, allocations: 8.031 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.116e-05/0.1321, allocations: 58.53 kB / 361.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.137e-05/0.1321, allocations: 31.66 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.1324, allocations: 218.8 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.1324, allocations: 20.56 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.649e-05/0.1325, allocations: 27.95 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.1329, allocations: 239.5 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1329, allocations: 4 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.1329, allocations: 11.98 kB / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.1329, allocations: 4 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002752/0.1332, allocations: 157.6 kB / 361.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009264/0.1341, allocations: 0.713 MB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/0.1344, allocations: 172.3 kB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.1346, allocations: 81.19 kB / 362.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.1346, allocations: 12.11 kB / 362.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.1348, allocations: 119 kB / 363 MB, free: 8.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.983e-06/0.1348, allocations: 4 kB / 363 MB, free: 8.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004059/0.1352, allocations: 221.2 kB / 363.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.1353, allocations: 59.36 kB / 363.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.1354, allocations: 145.8 kB / 363.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1355, allocations: 37.7 kB / 363.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.485e-05/0.1356, allocations: 128.6 kB / 363.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.834e-05/0.1356, allocations: 59.2 kB / 363.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.1356, allocations: 4 kB / 363.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1358, allocations: 334.8 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1359, allocations: 60.62 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.1361, allocations: 132 kB / 364.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.1362, allocations: 71.94 kB / 364.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1362, allocations: 0 / 364.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003398/0.1365, allocations: 241.8 kB / 364.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1366, allocations: 6.5 kB / 364.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1366, allocations: 4 kB / 364.4 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1366, allocations: 8.219 kB / 364.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.1367, allocations: 27.92 kB / 364.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-05/0.1368, allocations: 3.984 kB / 364.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.953e-05/0.1369, allocations: 31.7 kB / 364.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.808e-05/0.1369, allocations: 12 kB / 364.5 MB, free: 7.254 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001478/0.1371, allocations: 165.7 kB / 364.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.883e-05/0.1371, allocations: 7.906 kB / 364.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003525/0.1374, allocations: 200.1 kB / 364.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1375, allocations: 0 / 364.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1375, allocations: 0 / 364.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1375, allocations: 3.984 kB / 364.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008684/0.1384, allocations: 0.5689 MB / 365.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1384, allocations: 0 / 365.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.1385, allocations: 16 kB / 365.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.1385, allocations: 4 kB / 365.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1385, allocations: 11.94 kB / 365.5 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1385, allocations: 3.938 kB / 365.5 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1385, allocations: 4 kB / 365.5 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.1389, allocations: 279.2 kB / 365.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.421e-05/0.1389, allocations: 88.95 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.139, allocations: 0 / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.904e-05/0.1391, allocations: 19.94 kB / 365.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/0.1391, allocations: 23.97 kB / 365.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.1392, allocations: 4 kB / 365.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.284e-05/0.1392, allocations: 106.7 kB / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1392, allocations: 0 / 366 MB, free: 5.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1396, allocations: 51.75 kB / 366.1 MB, free: 5.605 MB / 302.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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0006773/0.1402, allocations: 0.8142 MB / 366.9 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003295/0.1406, allocations: 179.9 kB / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1406, allocations: 0 / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.1407, allocations: 87.78 kB / 367.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.1411, allocations: 23.95 kB / 367.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.1428, allocations: 0.9455 MB / 368.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005114/0.1433, allocations: 0.7328 MB / 368.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.253e-05/0.1434, allocations: 21.95 kB / 368.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.1435, allocations: 63.47 kB / 368.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1435, allocations: 0 / 368.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2462/0.3897, allocations: 3.287 MB / 372.2 MB, free: 18.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.3899, allocations: 177.8 kB / 372.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.08/2.47, allocations: 1.219 kB / 372.4 MB, free: 18.52 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat