Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002259/0.002259, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.335/2.335, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00156/0.00156, allocations: 90.7 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.925e-05, allocations: 0 / 314.8 MB, free: 9.086 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4902/0.4903, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1843/0.6747, allocations: 74.42 MB / 436.8 MB, free: 11.81 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003833/0.6752, allocations: 65.34 kB / 436.9 MB, free: 11.75 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01955/0.6947, allocations: 2.778 MB / 439.7 MB, free: 8.98 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.6948, allocations: 0 / 439.7 MB, free: 8.98 MB / 331.1 MB Notification: Performance of Transformations before backend: time 3.279e-05/0.6949, allocations: 8 kB / 439.7 MB, free: 8.973 MB / 331.1 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.001256/0.6961, allocations: 443.8 kB / 440.1 MB, free: 8.496 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.105e-05/0.6962, allocations: 8.031 kB / 440.1 MB, free: 8.488 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.6964, allocations: 21.88 kB / 440.1 MB, free: 8.469 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005646/0.697, allocations: 226.8 kB / 440.4 MB, free: 8.207 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.877e-05/0.6971, allocations: 8 kB / 440.4 MB, free: 8.199 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.6972, allocations: 21.97 kB / 440.4 MB, free: 8.18 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007387/0.698, allocations: 141 kB / 440.5 MB, free: 8.039 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008489/0.6989, allocations: 205.2 kB / 440.7 MB, free: 7.828 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.6989, allocations: 0 / 440.7 MB, free: 7.828 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/0.699, allocations: 4 kB / 440.7 MB, free: 7.824 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.699, allocations: 4 kB / 440.7 MB, free: 7.82 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002346/0.7014, allocations: 0.6438 MB / 441.4 MB, free: 7.137 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/0.7021, allocations: 151.2 kB / 441.5 MB, free: 6.98 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.7024, allocations: 74.47 kB / 441.6 MB, free: 6.906 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.7025, allocations: 4.188 kB / 441.6 MB, free: 6.902 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004217/0.7029, allocations: 109.9 kB / 441.7 MB, free: 6.785 MB / 331.1 MB Notification: Performance of pre-optimization done (n=24): time 5.46e-06/0.703, allocations: 7.938 kB / 441.7 MB, free: 6.777 MB / 331.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007834/0.7038, allocations: 149 kB / 441.9 MB, free: 6.629 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.7039, allocations: 55.41 kB / 441.9 MB, free: 6.562 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.7042, allocations: 134.1 kB / 442.1 MB, free: 6.422 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 8.113e-05/0.7043, allocations: 37.64 kB / 442.1 MB, free: 6.379 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.7045, allocations: 198.8 kB / 442.3 MB, free: 6.184 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.7047, allocations: 55.25 kB / 442.3 MB, free: 6.129 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/0.7047, allocations: 0 / 442.3 MB, free: 6.129 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.705, allocations: 322.8 kB / 442.7 MB, free: 5.805 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.7052, allocations: 60.64 kB / 442.7 MB, free: 5.742 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003459/0.7056, allocations: 107.8 kB / 442.8 MB, free: 5.613 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.7059, allocations: 59.91 kB / 442.9 MB, free: 5.555 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.706, allocations: 0 / 442.9 MB, free: 5.555 MB / 331.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008996/0.7069, allocations: 208.6 kB / 443.1 MB, free: 5.348 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.219e-05/0.707, allocations: 8 kB / 443.1 MB, free: 5.34 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.707, allocations: 0 / 443.1 MB, free: 5.34 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.556e-05/0.7071, allocations: 4 kB / 443.1 MB, free: 5.336 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/0.7075, allocations: 31.92 kB / 443.1 MB, free: 5.305 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/0.7075, allocations: 7.953 kB / 443.1 MB, free: 5.297 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.7078, allocations: 15.84 kB / 443.1 MB, free: 5.281 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/0.7079, allocations: 15.98 kB / 443.2 MB, free: 5.266 MB / 331.1 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 0.0002351/0.7081, allocations: 128 kB / 443.3 MB, free: 5.133 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000623/0.7088, allocations: 154.4 kB / 443.4 MB, free: 4.977 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.743e-05/0.7089, allocations: 7.906 kB / 443.4 MB, free: 4.969 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008026/0.7097, allocations: 170.9 kB / 443.6 MB, free: 4.801 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.7098, allocations: 4 kB / 443.6 MB, free: 4.797 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.7098, allocations: 0 / 443.6 MB, free: 4.797 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.7098, allocations: 3.984 kB / 443.6 MB, free: 4.793 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.7115, allocations: 0.4967 MB / 444.1 MB, free: 4.254 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.7115, allocations: 7.953 kB / 444.1 MB, free: 4.246 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.7117, allocations: 15.94 kB / 444.1 MB, free: 4.23 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.479e-05/0.7118, allocations: 3.984 kB / 444.1 MB, free: 4.227 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.7118, allocations: 0.875 kB / 444.1 MB, free: 4.227 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.827e-06/0.7118, allocations: 4.938 kB / 444.2 MB, free: 4.223 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7118, allocations: 0 / 444.2 MB, free: 4.223 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007605/0.7126, allocations: 255.7 kB / 444.4 MB, free: 3.957 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.7127, allocations: 104.7 kB / 444.5 MB, free: 3.836 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.558e-05/0.7128, allocations: 4 kB / 444.5 MB, free: 3.832 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002548/0.7131, allocations: 4 kB / 444.5 MB, free: 3.828 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.7133, allocations: 28.64 kB / 444.5 MB, free: 3.801 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/0.7133, allocations: 8 kB / 444.5 MB, free: 3.793 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001301/0.7135, allocations: 95.16 kB / 444.6 MB, free: 3.703 MB / 331.1 MB Notification: Performance of sort global known variables: time 7.22e-07/0.7135, allocations: 0 / 444.6 MB, free: 3.703 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0007256/0.7143, allocations: 45.75 kB / 444.7 MB, free: 3.66 MB / 331.1 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.001407/0.7157, allocations: 0.7924 MB / 445.5 MB, free: 2.84 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0007389/0.7165, allocations: 160.1 kB / 445.6 MB, free: 2.684 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7165, allocations: 0 / 445.6 MB, free: 2.684 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.7168, allocations: 68.38 kB / 445.7 MB, free: 2.617 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.7173, allocations: 20.61 kB / 445.7 MB, free: 2.598 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.7189, allocations: 284.7 kB / 446 MB, free: 2.277 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006096/0.7196, allocations: 0.7362 MB / 446.7 MB, free: 1.516 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.7199, allocations: 63.41 kB / 446.8 MB, free: 1.453 MB / 331.1 MB Notification: Performance of SimCode: time 1.643e-06/0.7199, allocations: 0 / 446.8 MB, free: 1.453 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.872/3.592, allocations: 2.972 MB / 449.8 MB, free: 14.53 MB / 347.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat