Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",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.00181/0.00181, allocations: 177.1 kB / 8.35 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.415/1.415, allocations: 221.5 MB / 230.3 MB, free: 7.594 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.000912/0.0009118, allocations: 92.33 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.143e-05/2.143e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 50.42 MB / 387.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3015/0.414, allocations: 75.94 MB / 463.5 MB, free: 2.801 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.4142, allocations: 63.97 kB / 463.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009326/0.4236, allocations: 3.029 MB / 466.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4236, allocations: 0 / 466.6 MB, free: 15.69 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.4237, allocations: 4 kB / 466.6 MB, free: 15.69 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.0007489/0.4244, allocations: 448.9 kB / 467 MB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.708e-05/0.4245, allocations: 8.031 kB / 467 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.73e-05/0.4246, allocations: 23.72 kB / 467.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/0.4249, allocations: 222.9 kB / 467.3 MB, free: 14.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.425, allocations: 12 kB / 467.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.35e-05/0.4251, allocations: 27.98 kB / 467.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000457/0.4255, allocations: 141 kB / 467.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.4261, allocations: 236.9 kB / 467.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.4261, allocations: 0 / 467.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.4262, allocations: 4 kB / 467.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.4262, allocations: 8 kB / 467.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.4277, allocations: 0.9047 MB / 468.6 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003364/0.4281, allocations: 161.8 kB / 468.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.4283, allocations: 74.08 kB / 468.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.4283, allocations: 192 / 468.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.4286, allocations: 139.8 kB / 469 MB, free: 13.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.4286, allocations: 0 / 469 MB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004557/0.4291, allocations: 149.4 kB / 469.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.646e-05/0.4292, allocations: 89.05 kB / 469.2 MB, free: 12.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.4294, allocations: 142.5 kB / 469.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.4294, allocations: 33.64 kB / 469.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.4296, allocations: 144.2 kB / 469.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.535e-05/0.4297, allocations: 63.25 kB / 469.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.376e-05/0.4297, allocations: 0 / 469.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4299, allocations: 322.8 kB / 469.9 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.43, allocations: 56.03 kB / 469.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.4302, allocations: 128.5 kB / 470.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.4304, allocations: 63.91 kB / 470.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4304, allocations: 4 kB / 470.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000494/0.4309, allocations: 213.3 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.431, allocations: 4.281 kB / 470.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.431, allocations: 8 kB / 470.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.431, allocations: 4 kB / 470.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.4312, allocations: 39.8 kB / 470.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.4313, allocations: 4 kB / 470.4 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.4314, allocations: 15.86 kB / 470.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.4315, allocations: 19.98 kB / 470.4 MB, free: 11.55 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,greaterEqual.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 0.0001194/0.4316, allocations: 120 kB / 470.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003366/0.432, allocations: 162.3 kB / 470.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.401e-05/0.432, allocations: 11.91 kB / 470.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.4325, allocations: 166.2 kB / 470.9 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.4325, allocations: 4 kB / 470.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4325, allocations: 3.953 kB / 470.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.4325, allocations: 7.984 kB / 470.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009728/0.4335, allocations: 0.5179 MB / 471.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4335, allocations: 4 kB / 471.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.4337, allocations: 23.92 kB / 471.4 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/0.4337, allocations: 7.953 kB / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.4337, allocations: 0 / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.4337, allocations: 0 / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4337, allocations: 4 kB / 471.5 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004597/0.4342, allocations: 274.4 kB / 471.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.4343, allocations: 96.86 kB / 471.8 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.4343, allocations: 0 / 471.8 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.4345, allocations: 7.984 kB / 471.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.502e-05/0.4346, allocations: 27.91 kB / 471.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.4346, allocations: 8 kB / 471.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.573e-05/0.4347, allocations: 101.3 kB / 472 MB, free: 9.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4347, allocations: 0 / 472 MB, free: 9.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.4353, allocations: 36 kB / 472 MB, free: 9.875 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,greaterEqual.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.000954/0.4362, allocations: 0.8968 MB / 472.9 MB, free: 8.941 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004453/0.4367, allocations: 163.8 kB / 473.1 MB, free: 8.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.4367, allocations: 7.938 kB / 473.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.4369, allocations: 75.94 kB / 473.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.4373, allocations: 11.92 kB / 473.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.4384, allocations: 283.8 kB / 473.4 MB, free: 8.371 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.4388, allocations: 0.7446 MB / 474.2 MB, free: 7.602 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.439, allocations: 18.08 kB / 474.2 MB, free: 7.586 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/0.4392, allocations: 71.41 kB / 474.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of SimCode: time 7.51e-07/0.4392, allocations: 0 / 474.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02838/0.4676, allocations: 3.079 MB / 477.3 MB, free: 4.453 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.4679, allocations: 136.6 kB / 477.5 MB, free: 4.266 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.638/2.106, allocations: 0 / 477.5 MB, free: 4.266 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat