Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",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.001615/0.001615, allocations: 93.23 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.002226/0.002226, allocations: 184 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.474/1.474, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002677, allocations: 6.844 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.115, allocations: 50.43 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001694/0.1167, allocations: 1.187 MB / 352.4 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006337/0.1174, allocations: 295.1 kB / 352.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.589e-05/0.1175, allocations: 11.94 kB / 352.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001152/0.1176, allocations: 19.86 kB / 352.7 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.937e-05/0.1177, allocations: 11.92 kB / 352.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003231/0.118, allocations: 83.89 kB / 352.8 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002321/0.1182, allocations: 155.7 kB / 353 MB, free: 9.836 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002742/0.1185, allocations: 134.5 kB / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.857e-05/0.1186, allocations: 67.77 kB / 353.2 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1187, allocations: 75.61 kB / 353.2 MB, free: 9.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.1188, allocations: 12 kB / 353.3 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.955e-05/0.1188, allocations: 15.94 kB / 353.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.913e-05/0.1189, allocations: 31.91 kB / 353.3 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.119, allocations: 61.56 kB / 353.4 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001901/0.1192, allocations: 155.6 kB / 353.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.1192, allocations: 4 kB / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1192, allocations: 0 / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.1192, allocations: 0 / 353.5 MB, free: 9.277 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005969/0.1198, allocations: 434.5 kB / 353.9 MB, free: 8.805 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1199, allocations: 12.03 kB / 354 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.856e-05/0.1199, allocations: 58.53 kB / 354 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.549e-05/0.12, allocations: 23.67 kB / 354 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.1203, allocations: 226.8 kB / 354.3 MB, free: 8.441 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.1203, allocations: 24.56 kB / 354.3 MB, free: 8.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.911e-05/0.1204, allocations: 27.94 kB / 354.3 MB, free: 8.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.1208, allocations: 243.4 kB / 354.6 MB, free: 8.141 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1208, allocations: 0 / 354.6 MB, free: 8.141 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.1208, allocations: 12 kB / 354.6 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1209, allocations: 7.953 kB / 354.6 MB, free: 8.121 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/0.1212, allocations: 157.7 kB / 354.7 MB, free: 7.969 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1222, allocations: 0.7052 MB / 355.4 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.1225, allocations: 175.4 kB / 355.6 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.1226, allocations: 4.172 kB / 355.6 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.1228, allocations: 111.5 kB / 355.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1228, allocations: 0 / 355.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004399/0.1233, allocations: 212.2 kB / 355.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.1233, allocations: 67.27 kB / 356 MB, free: 6.613 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.1235, allocations: 149.8 kB / 356.1 MB, free: 6.453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.1235, allocations: 33.7 kB / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.1236, allocations: 132.6 kB / 356.3 MB, free: 6.281 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.1237, allocations: 55.25 kB / 356.3 MB, free: 6.227 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.1237, allocations: 12 kB / 356.4 MB, free: 6.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1238, allocations: 322.8 kB / 356.7 MB, free: 5.891 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.124, allocations: 60.62 kB / 356.7 MB, free: 5.828 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1241, allocations: 132.1 kB / 356.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.1243, allocations: 72.47 kB / 356.9 MB, free: 5.605 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1243, allocations: 0 / 356.9 MB, free: 5.605 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003794/0.1247, allocations: 245.2 kB / 357.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1247, allocations: 7.938 kB / 357.2 MB, free: 5.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1247, allocations: 4 kB / 357.2 MB, free: 5.348 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.1247, allocations: 8 kB / 357.2 MB, free: 5.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.1249, allocations: 31.92 kB / 357.2 MB, free: 5.309 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1249, allocations: 7.938 kB / 357.2 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.125, allocations: 31.91 kB / 357.3 MB, free: 5.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/0.125, allocations: 15.98 kB / 357.3 MB, free: 5.254 MB / 286.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.0001483/0.1252, allocations: 157.7 kB / 357.4 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.1252, allocations: 7.906 kB / 357.4 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003423/0.1256, allocations: 194.4 kB / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1256, allocations: 0 / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1256, allocations: 0 / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1256, allocations: 8 kB / 357.6 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000743/0.1264, allocations: 0.5648 MB / 358.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.1264, allocations: 0 / 358.2 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.941e-05/0.1265, allocations: 27.92 kB / 358.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.1265, allocations: 0 / 358.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.1265, allocations: 0 / 358.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1265, allocations: 8 kB / 358.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1265, allocations: 0 / 358.2 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.1268, allocations: 283.6 kB / 358.5 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.087e-05/0.1269, allocations: 92.89 kB / 358.6 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.1269, allocations: 4 kB / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.111e-05/0.127, allocations: 15.98 kB / 358.6 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.1271, allocations: 19.97 kB / 358.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.1271, allocations: 15.98 kB / 358.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.679e-05/0.1272, allocations: 91.27 kB / 358.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1272, allocations: 0 / 358.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1275, allocations: 55.75 kB / 358.8 MB, free: 3.617 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 (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.0006559/0.1282, allocations: 0.8099 MB / 359.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003263/0.1285, allocations: 183.8 kB / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1286, allocations: 0 / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.1287, allocations: 83.91 kB / 359.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.1289, allocations: 15.98 kB / 359.9 MB, free: 2.504 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.1309, allocations: 2.006 MB / 361.9 MB, free: 428 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.1313, allocations: 0.7407 MB / 362.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.614e-05/0.1314, allocations: 21.94 kB / 362.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1315, allocations: 59.42 kB / 362.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1315, allocations: 0 / 362.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.1466, allocations: 3.267 MB / 366 MB, free: 12.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001798/0.1468, allocations: 170.9 kB / 366.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.206, allocations: 0 / 366.2 MB, free: 12.18 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat