Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009789/0.000979, allocations: 100.4 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 207.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002718/0.0002718, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1352, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002173/0.1374, allocations: 1.417 MB / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007232/0.1382, allocations: 303.1 kB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.1383, allocations: 8 kB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1384, allocations: 23.8 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.98e-05/0.1385, allocations: 7.922 kB / 359.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.1389, allocations: 95.88 kB / 360 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.1392, allocations: 163.6 kB / 360.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.1395, allocations: 145.9 kB / 360.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.254e-05/0.1396, allocations: 67.77 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.1397, allocations: 83.59 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.1397, allocations: 8 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.318e-05/0.1398, allocations: 20 kB / 360.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.017e-05/0.1399, allocations: 35.84 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.369e-05/0.14, allocations: 57.58 kB / 360.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.1402, allocations: 163.6 kB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1402, allocations: 0 / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1402, allocations: 0 / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1402, allocations: 0 / 360.8 MB, free: 11.17 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.0006551/0.1409, allocations: 450.8 kB / 361.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.141, allocations: 8.031 kB / 361.2 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.79e-05/0.141, allocations: 58.55 kB / 361.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.332e-05/0.1411, allocations: 23.8 kB / 361.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/0.1414, allocations: 230.7 kB / 361.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.1414, allocations: 24.5 kB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.1415, allocations: 35.94 kB / 361.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.1419, allocations: 262 kB / 361.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.142, allocations: 0 / 361.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.142, allocations: 12 kB / 361.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.142, allocations: 4 kB / 361.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.1423, allocations: 177.5 kB / 362 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.1436, allocations: 0.9713 MB / 363 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.1439, allocations: 173.4 kB / 363.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.1439, allocations: 8.188 kB / 363.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.1442, allocations: 136.6 kB / 363.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1442, allocations: 0 / 363.3 MB, free: 8.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004608/0.1447, allocations: 225.3 kB / 363.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.1448, allocations: 85.11 kB / 363.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1449, allocations: 161 kB / 363.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.145, allocations: 37.64 kB / 363.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1451, allocations: 132.6 kB / 363.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.779e-05/0.1451, allocations: 71.17 kB / 364 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.392e-05/0.1452, allocations: 4 kB / 364 MB, free: 7.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1453, allocations: 334.8 kB / 364.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.1455, allocations: 63.97 kB / 364.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.1456, allocations: 140.3 kB / 364.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.1458, allocations: 64 kB / 364.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.1458, allocations: 3.984 kB / 364.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003893/0.1462, allocations: 257.7 kB / 364.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.1462, allocations: 4.281 kB / 364.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1462, allocations: 8 kB / 364.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.1463, allocations: 7.953 kB / 364.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.1464, allocations: 31.92 kB / 364.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.1464, allocations: 7.984 kB / 364.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.1466, allocations: 27.75 kB / 364.9 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.077e-05/0.1466, allocations: 12 kB / 364.9 MB, free: 6.676 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.0001812/0.1468, allocations: 162.3 kB / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.1468, allocations: 19.81 kB / 365.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/0.1472, allocations: 188.2 kB / 365.3 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1472, allocations: 0 / 365.3 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.1472, allocations: 7.953 kB / 365.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.1472, allocations: 7.969 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007594/0.148, allocations: 0.5916 MB / 365.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.148, allocations: 4 kB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.102e-05/0.1481, allocations: 19.89 kB / 365.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1481, allocations: 3.984 kB / 365.9 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1481, allocations: 8 kB / 365.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1481, allocations: 0 / 365.9 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.1481, allocations: 4 kB / 366 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.1485, allocations: 301.8 kB / 366.2 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.1485, allocations: 88.95 kB / 366.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.1486, allocations: 4 kB / 366.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.14e-05/0.1486, allocations: 15.92 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.857e-05/0.1487, allocations: 19.97 kB / 366.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.1488, allocations: 8 kB / 366.4 MB, free: 5.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.948e-05/0.1488, allocations: 99.27 kB / 366.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1488, allocations: 0 / 366.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1491, allocations: 55.83 kB / 366.5 MB, free: 4.965 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.0006703/0.1498, allocations: 0.9087 MB / 367.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003124/0.1501, allocations: 196.3 kB / 367.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1502, allocations: 0 / 367.6 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.1503, allocations: 79.86 kB / 367.7 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.1505, allocations: 19.98 kB / 367.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.1526, allocations: 2.335 MB / 370.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1529, allocations: 0.7445 MB / 370.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.899e-05/0.153, allocations: 21.95 kB / 370.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.1531, allocations: 67.47 kB / 370.9 MB, free: 460 kB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1532, allocations: 0 / 370.9 MB, free: 460 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2488/0.402, allocations: 3.334 MB / 374.2 MB, free: 18.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001426/0.4022, allocations: 182.7 kB / 374.4 MB, free: 18.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.956/2.358, allocations: 0 / 374.4 MB, free: 18.5 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat