Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009493/0.0009494, allocations: 95.95 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002386/0.0002386, allocations: 8 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1547, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002627/0.1574, allocations: 1.39 MB / 359.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009069/0.1583, allocations: 307.1 kB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.1585, allocations: 4 kB / 359.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.1586, allocations: 19.8 kB / 359.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.1587, allocations: 11.92 kB / 359.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.1592, allocations: 87.83 kB / 360 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003572/0.1596, allocations: 163.7 kB / 360.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003727/0.16, allocations: 145.6 kB / 360.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1602, allocations: 75.75 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1603, allocations: 79.61 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.1604, allocations: 12 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.982e-05/0.1605, allocations: 15.94 kB / 360.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.71e-05/0.1606, allocations: 39.89 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.947e-05/0.1607, allocations: 61.58 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.161, allocations: 155.6 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.161, allocations: 0 / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.652e-06/0.161, allocations: 4 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.161, allocations: 0 / 360.7 MB, free: 11.23 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.001076/0.1621, allocations: 462.4 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.226e-05/0.1622, allocations: 8.031 kB / 361.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.1623, allocations: 58.55 kB / 361.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.905e-05/0.1624, allocations: 27.7 kB / 361.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.1628, allocations: 222.8 kB / 361.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.1629, allocations: 20.56 kB / 361.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.27e-05/0.1629, allocations: 39.94 kB / 361.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006802/0.1636, allocations: 262 kB / 361.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.1637, allocations: 7.922 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.1637, allocations: 12 kB / 361.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.1637, allocations: 8 kB / 361.8 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.1642, allocations: 161.6 kB / 362 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.1659, allocations: 0.983 MB / 363 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003847/0.1663, allocations: 167.4 kB / 363.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.1663, allocations: 4.188 kB / 363.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.1667, allocations: 144.8 kB / 363.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.385e-06/0.1667, allocations: 0 / 363.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006298/0.1673, allocations: 233 kB / 363.5 MB, free: 8.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.242e-05/0.1674, allocations: 81.11 kB / 363.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.1676, allocations: 165.5 kB / 363.7 MB, free: 7.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.988e-05/0.1677, allocations: 41.83 kB / 363.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.1679, allocations: 144.5 kB / 363.9 MB, free: 7.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.743e-05/0.168, allocations: 59.19 kB / 364 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.168, allocations: 8 kB / 364 MB, free: 7.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1682, allocations: 322.8 kB / 364.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.1683, allocations: 63.97 kB / 364.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.1686, allocations: 140.3 kB / 364.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.1688, allocations: 75.92 kB / 364.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1688, allocations: 4 kB / 364.6 MB, free: 7.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005353/0.1693, allocations: 249.8 kB / 364.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.1694, allocations: 8 kB / 364.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1694, allocations: 0 / 364.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.1694, allocations: 11.95 kB / 364.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1696, allocations: 35.91 kB / 364.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.1697, allocations: 8.219 kB / 364.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1698, allocations: 31.78 kB / 364.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.1699, allocations: 12 kB / 364.9 MB, free: 6.703 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.0002408/0.1701, allocations: 159.1 kB / 365.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.1702, allocations: 11.81 kB / 365.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004821/0.1707, allocations: 184.2 kB / 365.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.1707, allocations: 11.94 kB / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.1707, allocations: 0 / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.1707, allocations: 8 kB / 365.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.1718, allocations: 0.5955 MB / 365.9 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.1718, allocations: 3.953 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1719, allocations: 19.92 kB / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.172, allocations: 0 / 365.9 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.172, allocations: 8 kB / 365.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.172, allocations: 4 kB / 365.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.172, allocations: 0 / 365.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.1725, allocations: 297.7 kB / 366.2 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.055e-05/0.1726, allocations: 92.95 kB / 366.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.1726, allocations: 7.984 kB / 366.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.1727, allocations: 8 kB / 366.3 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.1729, allocations: 27.95 kB / 366.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.1729, allocations: 15.98 kB / 366.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.688e-05/0.173, allocations: 101.5 kB / 366.5 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.173, allocations: 3.938 kB / 366.5 MB, free: 5.043 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004979/0.1735, allocations: 59.69 kB / 366.5 MB, free: 4.984 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,step.localActive,transition1.enableFire,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.0009231/0.1745, allocations: 0.8972 MB / 367.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004606/0.1749, allocations: 195.8 kB / 367.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1749, allocations: 0 / 367.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.1752, allocations: 84.47 kB / 367.7 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.1755, allocations: 16.06 kB / 367.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.1785, allocations: 2.347 MB / 370.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.179, allocations: 0.7445 MB / 370.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.1791, allocations: 21.94 kB / 370.8 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.1793, allocations: 63.41 kB / 370.9 MB, free: 480 kB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1793, allocations: 0 / 370.9 MB, free: 480 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3667/0.546, allocations: 3.364 MB / 374.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.5462, allocations: 179.8 kB / 374.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.512, allocations: 6.844 kB / 374.4 MB, free: 18.53 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat