Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001545/0.001545, allocations: 175.3 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.3 MB / 235.5 MB, free: 3 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.0008396/0.0008396, allocations: 93.89 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.437e-05/2.441e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.09928, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/0.4174, allocations: 78.81 MB / 473.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4177, allocations: 69.66 kB / 473.2 MB, free: 8.609 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007808/0.4255, allocations: 2.761 MB / 476 MB, free: 5.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4256, allocations: 4 kB / 476 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4256, allocations: 4 kB / 476 MB, free: 5.852 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000666/0.4263, allocations: 414.9 kB / 476.4 MB, free: 5.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.4263, allocations: 8.031 kB / 476.4 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.942e-05/0.4264, allocations: 50.48 kB / 476.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.278e-05/0.4265, allocations: 19.81 kB / 476.5 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.4268, allocations: 222 kB / 476.7 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.4268, allocations: 8 kB / 476.7 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.254e-05/0.4269, allocations: 15.91 kB / 476.7 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/0.4274, allocations: 231.3 kB / 476.9 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.4275, allocations: 7.891 kB / 476.9 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.4275, allocations: 8 kB / 476.9 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4275, allocations: 7.938 kB / 476.9 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.4277, allocations: 59.94 kB / 477 MB, free: 4.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007229/0.4284, allocations: 0.596 MB / 477.6 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.4287, allocations: 131.9 kB / 477.7 MB, free: 3.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.94e-05/0.4288, allocations: 66.58 kB / 477.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.4288, allocations: 4.078 kB / 477.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.4289, allocations: 42.5 kB / 477.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.4289, allocations: 0 / 477.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002585/0.4291, allocations: 113.4 kB / 478 MB, free: 3.633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.4292, allocations: 122.8 kB / 478.1 MB, free: 3.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.4294, allocations: 137.3 kB / 478.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.4294, allocations: 33.7 kB / 478.2 MB, free: 3.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.146e-05/0.4295, allocations: 112.4 kB / 478.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.4296, allocations: 31.62 kB / 478.4 MB, free: 3.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.4296, allocations: 7.938 kB / 478.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4297, allocations: 326.8 kB / 478.7 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.335e-05/0.4298, allocations: 24.38 kB / 478.7 MB, free: 2.801 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.4299, allocations: 123.8 kB / 478.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.775e-05/0.43, allocations: 43.92 kB / 478.9 MB, free: 2.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.43, allocations: 0 / 478.9 MB, free: 2.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002659/0.4303, allocations: 169.7 kB / 479.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.4303, allocations: 8 kB / 479.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4304, allocations: 11.97 kB / 479.1 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4304, allocations: 4 kB / 479.1 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.4306, allocations: 47.97 kB / 479.1 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.4306, allocations: 8.484 kB / 479.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.4307, allocations: 27.84 kB / 479.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.4307, allocations: 8 kB / 479.2 MB, free: 2.309 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001154/0.4309, allocations: 128.8 kB / 479.3 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.431, allocations: 97.47 kB / 479.4 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.072e-05/0.4311, allocations: 16.62 kB / 479.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4311, allocations: 0 / 479.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.4311, allocations: 4 kB / 479.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.4311, allocations: 3.984 kB / 479.4 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.4314, allocations: 209.6 kB / 479.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4314, allocations: 0 / 479.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.4316, allocations: 39.97 kB / 479.7 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4316, allocations: 4 kB / 479.7 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.4316, allocations: 4 kB / 479.7 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.4317, allocations: 4 kB / 479.7 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.4317, allocations: 0 / 479.7 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.432, allocations: 370.8 kB / 480 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/0.4321, allocations: 104.9 kB / 480.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.4321, allocations: 0 / 480.1 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.4323, allocations: 15.98 kB / 480.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.4323, allocations: 7.953 kB / 480.2 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.4323, allocations: 4 kB / 480.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.536e-05/0.4324, allocations: 120.1 kB / 480.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4324, allocations: 0 / 480.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003077/0.4328, allocations: 35.98 kB / 480.3 MB, free: 1.051 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0006983/0.4335, allocations: 1.042 MB / 481.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.4337, allocations: 103.8 kB / 481.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4337, allocations: 0 / 481.5 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.516e-05/0.4337, allocations: 19.94 kB / 481.5 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003446/0.4341, allocations: 60.88 kB / 481.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007615/0.4348, allocations: 368.9 kB / 481.9 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.4351, allocations: 0.7284 MB / 482.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.885e-05/0.4352, allocations: 9.203 kB / 482.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.704e-05/0.4353, allocations: 39.42 kB / 482.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4353, allocations: 3.938 kB / 482.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01249/0.4478, allocations: 2.579 MB / 485.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/0.4479, allocations: 201.3 kB / 485.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.527/1.975, allocations: 0 / 485.5 MB, free: 11.96 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat