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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 198.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008367/0.0008366, allocations: 95.62 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.486e-05/1.487e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09687, allocations: 51.48 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3742/0.4711, allocations: 76.77 MB / 472 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.4713, allocations: 65.84 kB / 472.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008984/0.4803, allocations: 2.997 MB / 475.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4804, allocations: 0 / 475.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.4804, allocations: 8 kB / 475.1 MB, free: 12.62 MB / 346.7 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.0005367/0.4809, allocations: 443.4 kB / 475.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.481, allocations: 8.031 kB / 475.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.132e-05/0.4811, allocations: 25.31 kB / 475.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.4813, allocations: 227.9 kB / 475.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.4814, allocations: 11.94 kB / 475.8 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.4814, allocations: 17.78 kB / 475.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003479/0.4818, allocations: 142.7 kB / 475.9 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.4822, allocations: 234.2 kB / 476.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.4823, allocations: 3.938 kB / 476.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.4823, allocations: 0 / 476.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.4823, allocations: 4 kB / 476.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000813/0.4832, allocations: 0.9062 MB / 477.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/0.4834, allocations: 159.6 kB / 477.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.837e-05/0.4834, allocations: 73.61 kB / 477.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.4835, allocations: 8.141 kB / 477.3 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.4836, allocations: 128.8 kB / 477.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.392e-06/0.4836, allocations: 0 / 477.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002562/0.4839, allocations: 154.4 kB / 477.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.713e-05/0.4839, allocations: 82.56 kB / 477.7 MB, free: 10.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.942e-05/0.484, allocations: 138.9 kB / 477.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.484, allocations: 34.03 kB / 477.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.993e-05/0.4841, allocations: 135.2 kB / 478 MB, free: 10.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.4841, allocations: 58.69 kB / 478 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-06/0.4842, allocations: 4 kB / 478 MB, free: 10.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.073e-05/0.4842, allocations: 323.6 kB / 478.4 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.795e-05/0.4843, allocations: 53.94 kB / 478.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.973e-05/0.4844, allocations: 133 kB / 478.5 MB, free: 9.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.072e-05/0.4845, allocations: 59.78 kB / 478.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4845, allocations: 0 / 478.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002572/0.4848, allocations: 216.4 kB / 478.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.4848, allocations: 11.95 kB / 478.8 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4848, allocations: 3.938 kB / 478.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.4848, allocations: 8 kB / 478.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.485, allocations: 33.98 kB / 478.9 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.485, allocations: 4 kB / 478.9 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.147e-05/0.4851, allocations: 17.48 kB / 478.9 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.4851, allocations: 15.94 kB / 478.9 MB, free: 9.34 MB / 346.7 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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 6.847e-05/0.4852, allocations: 129.5 kB / 479 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000178/0.4854, allocations: 150 kB / 479.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.4854, allocations: 21.36 kB / 479.2 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.4857, allocations: 170.3 kB / 479.4 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.4857, allocations: 4 kB / 479.4 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4857, allocations: 0 / 479.4 MB, free: 8.953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.4857, allocations: 5.484 kB / 479.4 MB, free: 8.949 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.4862, allocations: 0.5319 MB / 479.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4862, allocations: 0 / 479.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.505e-05/0.4863, allocations: 14.62 kB / 479.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4863, allocations: 0 / 479.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.4863, allocations: 2.531 kB / 479.9 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4864, allocations: 4 kB / 479.9 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4864, allocations: 7.938 kB / 479.9 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.4866, allocations: 278.9 kB / 480.2 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.4866, allocations: 94.78 kB / 480.3 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.4867, allocations: 4 kB / 480.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.645e-05/0.4868, allocations: 1.406 kB / 480.3 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.576e-05/0.4868, allocations: 28.8 kB / 480.3 MB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.4868, allocations: 7.094 kB / 480.3 MB, free: 8.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.499e-05/0.4869, allocations: 98.58 kB / 480.4 MB, free: 8.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4869, allocations: 0 / 480.4 MB, free: 8.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002939/0.4872, allocations: 33.78 kB / 480.5 MB, free: 7.973 MB / 346.7 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * 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.0004094/0.4876, allocations: 0.8852 MB / 481.4 MB, free: 7.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002098/0.4878, allocations: 160.6 kB / 481.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4878, allocations: 3.938 kB / 481.5 MB, free: 6.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.4879, allocations: 77.81 kB / 481.6 MB, free: 6.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.4881, allocations: 18.64 kB / 481.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000522/0.4887, allocations: 273.5 kB / 481.9 MB, free: 6.664 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.4888, allocations: 0.742 MB / 482.6 MB, free: 5.926 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.954e-05/0.4889, allocations: 30.73 kB / 482.6 MB, free: 5.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.489, allocations: 64.19 kB / 482.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.489, allocations: 0 / 482.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02317/0.5122, allocations: 3.062 MB / 485.8 MB, free: 3.281 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.5124, allocations: 141.3 kB / 485.9 MB, free: 3.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.151, allocations: 0 / 485.9 MB, free: 3.086 MB / 346.7 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