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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008828/0.0008829, allocations: 90.06 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.751e-05, allocations: 4 kB / 337.1 MB, free: 9.957 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 50.41 MB / 387.5 MB, free: 7.508 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.4097, allocations: 75.33 MB / 462.9 MB, free: 3.516 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001793/0.41, allocations: 63.97 kB / 462.9 MB, free: 3.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00707/0.417, allocations: 2.852 MB / 465.8 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.4171, allocations: 0 / 465.8 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.4171, allocations: 12 kB / 465.8 MB, free: 0.5742 MB / 330.7 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.0005363/0.4177, allocations: 439.6 kB / 466.2 MB, free: 104 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4177, allocations: 8.031 kB / 466.2 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.4178, allocations: 19.81 kB / 466.3 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.418, allocations: 218.9 kB / 466.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.82e-05/0.4181, allocations: 8 kB / 466.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.4181, allocations: 19.98 kB / 466.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002789/0.4184, allocations: 149 kB / 466.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003596/0.4188, allocations: 202.4 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.4188, allocations: 3.938 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.13e-05/0.4188, allocations: 3.984 kB / 466.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.4188, allocations: 8 kB / 466.9 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008576/0.4197, allocations: 0.6349 MB / 467.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.4199, allocations: 155.3 kB / 467.6 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.536e-05/0.42, allocations: 65.23 kB / 467.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.4201, allocations: 4.188 kB / 467.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/0.4202, allocations: 110.1 kB / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.4202, allocations: 0 / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002764/0.4205, allocations: 153.3 kB / 468 MB, free: 14.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.4206, allocations: 55.41 kB / 468 MB, free: 14.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.4207, allocations: 138.9 kB / 468.2 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.4207, allocations: 33.69 kB / 468.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.4208, allocations: 132.4 kB / 468.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.4208, allocations: 51.27 kB / 468.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.4209, allocations: 0 / 468.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.421, allocations: 330.8 kB / 468.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.4211, allocations: 56.64 kB / 468.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.4212, allocations: 116.4 kB / 468.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.993e-05/0.4213, allocations: 63.89 kB / 468.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4213, allocations: 3.938 kB / 468.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002957/0.4216, allocations: 205.3 kB / 469.1 MB, free: 13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.4217, allocations: 4 kB / 469.1 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4217, allocations: 7.984 kB / 469.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.4217, allocations: 4 kB / 469.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.4218, allocations: 23.92 kB / 469.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.4219, allocations: 4 kB / 469.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.878e-05/0.422, allocations: 24.09 kB / 469.2 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.422, allocations: 15.94 kB / 469.2 MB, free: 12.92 MB / 346.7 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,$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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete 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 9.637e-05/0.4221, allocations: 129.9 kB / 469.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002037/0.4223, allocations: 150.3 kB / 469.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.4223, allocations: 7.906 kB / 469.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003339/0.4227, allocations: 174.2 kB / 469.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4227, allocations: 0 / 469.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4227, allocations: 0 / 469.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4227, allocations: 11.94 kB / 469.7 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000623/0.4233, allocations: 0.4991 MB / 470.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.4234, allocations: 0 / 470.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.042e-05/0.4234, allocations: 15.94 kB / 470.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.4235, allocations: 0 / 470.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.4235, allocations: 7.984 kB / 470.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4235, allocations: 7.984 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4235, allocations: 3.953 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.4238, allocations: 255.3 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.4238, allocations: 96.84 kB / 470.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.4239, allocations: 0 / 470.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.417e-05/0.424, allocations: 4 kB / 470.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.424, allocations: 35.89 kB / 470.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.4241, allocations: 12 kB / 470.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.376e-05/0.4241, allocations: 90.03 kB / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4241, allocations: 0 / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002842/0.4244, allocations: 39.98 kB / 470.7 MB, free: 11.3 MB / 346.7 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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0005498/0.425, allocations: 0.7986 MB / 471.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.4252, allocations: 163.8 kB / 471.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4252, allocations: 0 / 471.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.4254, allocations: 71.94 kB / 471.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.4255, allocations: 19.92 kB / 471.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/0.4261, allocations: 270.9 kB / 472 MB, free: 9.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.4265, allocations: 0.7366 MB / 472.8 MB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.742e-05/0.4266, allocations: 22.08 kB / 472.8 MB, free: 9.148 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.4267, allocations: 63.41 kB / 472.9 MB, free: 9.086 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4267, allocations: 0 / 472.9 MB, free: 9.086 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.4491, allocations: 2.988 MB / 475.9 MB, free: 6.109 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.4493, allocations: 130.3 kB / 476 MB, free: 5.918 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/2.098, allocations: 0 / 476 MB, free: 5.918 MB / 346.7 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