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.001863/0.001862, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.058/2.058, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000953/0.0009532, allocations: 91.55 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.203e-05, allocations: 7.938 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4831, allocations: 77.43 MB / 479.5 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.4834, allocations: 66.03 kB / 479.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009498/0.4929, allocations: 3.055 MB / 482.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.493, allocations: 0 / 482.7 MB, free: 9.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.493, allocations: 11.98 kB / 482.7 MB, free: 9.336 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.0005725/0.4936, allocations: 438.7 kB / 483.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.4936, allocations: 8.031 kB / 483.1 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.321e-05/0.4937, allocations: 57.98 kB / 483.2 MB, free: 8.832 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.853e-05/0.4938, allocations: 23.72 kB / 483.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002868/0.4941, allocations: 241 kB / 483.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.4942, allocations: 19.06 kB / 483.4 MB, free: 8.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.4942, allocations: 35.8 kB / 483.5 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.4947, allocations: 255.8 kB / 483.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.4948, allocations: 0 / 483.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.4948, allocations: 16.5 kB / 483.7 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4948, allocations: 8 kB / 483.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.4952, allocations: 163.5 kB / 483.9 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.4963, allocations: 0.9535 MB / 484.9 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.4966, allocations: 177.2 kB / 485 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.4968, allocations: 79.28 kB / 485.1 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.4968, allocations: 8.219 kB / 485.1 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.497, allocations: 139 kB / 485.3 MB, free: 6.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.497, allocations: 0 / 485.3 MB, free: 6.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003737/0.4974, allocations: 161.4 kB / 485.4 MB, free: 6.836 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.4975, allocations: 84.86 kB / 485.5 MB, free: 6.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.4976, allocations: 139 kB / 485.6 MB, free: 6.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.4976, allocations: 36.95 kB / 485.7 MB, free: 6.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.589e-05/0.4977, allocations: 143 kB / 485.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.4977, allocations: 58.06 kB / 485.9 MB, free: 6.395 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.4978, allocations: 8.344 kB / 485.9 MB, free: 6.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.856e-05/0.4978, allocations: 330 kB / 486.2 MB, free: 6.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.498, allocations: 61.67 kB / 486.3 MB, free: 6.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.4982, allocations: 128.6 kB / 486.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.4983, allocations: 69.84 kB / 486.4 MB, free: 5.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4983, allocations: 0 / 486.4 MB, free: 5.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004372/0.4988, allocations: 256.4 kB / 486.7 MB, free: 5.641 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.4988, allocations: 9.406 kB / 486.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.4988, allocations: 0 / 486.7 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.4989, allocations: 4 kB / 486.7 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.499, allocations: 35.05 kB / 486.7 MB, free: 5.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.4991, allocations: 11.92 kB / 486.8 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.4992, allocations: 24.88 kB / 486.8 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.4992, allocations: 8.281 kB / 486.8 MB, free: 5.562 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 8.698e-05/0.4993, allocations: 139.3 kB / 486.9 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.4994, allocations: 16.88 kB / 486.9 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002901/0.4997, allocations: 182.7 kB / 487.1 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.4997, allocations: 4 kB / 487.1 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4997, allocations: 0.875 kB / 487.1 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.4997, allocations: 0 / 487.1 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.5003, allocations: 0.5959 MB / 487.7 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5004, allocations: 0 / 487.7 MB, free: 4.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.972e-05/0.5004, allocations: 26.19 kB / 487.7 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.5004, allocations: 4 kB / 487.7 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.5005, allocations: 4.938 kB / 487.8 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.5005, allocations: 4 kB / 487.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5005, allocations: 0 / 487.8 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.5007, allocations: 298.3 kB / 488 MB, free: 4.391 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.5007, allocations: 88.95 kB / 488.1 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.5008, allocations: 7 kB / 488.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.5009, allocations: 10.86 kB / 488.2 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.863e-05/0.501, allocations: 19.41 kB / 488.2 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.501, allocations: 8 kB / 488.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.305e-05/0.501, allocations: 102.6 kB / 488.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.501, allocations: 0 / 488.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.5013, allocations: 45 kB / 488.3 MB, free: 4.121 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.0004558/0.5018, allocations: 0.9059 MB / 489.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002683/0.5021, allocations: 184.2 kB / 489.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5021, allocations: 0 / 489.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.5022, allocations: 85.73 kB / 489.5 MB, free: 3.023 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.5024, allocations: 15.61 kB / 489.5 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005889/0.503, allocations: 309.8 kB / 489.8 MB, free: 2.711 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.5032, allocations: 0.7404 MB / 490.5 MB, free: 1.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.814e-05/0.5033, allocations: 25.08 kB / 490.6 MB, free: 1.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.885e-05/0.5034, allocations: 64.03 kB / 490.6 MB, free: 1.898 MB / 346.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5034, allocations: 3.938 kB / 490.6 MB, free: 1.895 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.5187, allocations: 3.382 MB / 494 MB, free: 14.76 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.519, allocations: 153 kB / 494.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.174, allocations: 0 / 494.2 MB, free: 14.54 MB / 362.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