Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001236/0.001236, allocations: 196.5 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 1.412/1.412, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001003, allocations: 89 kB / 292.1 MB, free: 5.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.134e-05, allocations: 7.984 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4386, allocations: 79.41 MB / 481.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.4389, allocations: 74.58 kB / 481.6 MB, free: 10.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00585/0.4447, allocations: 2.435 MB / 484 MB, free: 7.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4447, allocations: 4 kB / 484 MB, free: 7.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.4448, allocations: 4 kB / 484 MB, free: 7.988 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003695/0.4451, allocations: 415.8 kB / 484.4 MB, free: 7.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4452, allocations: 8.031 kB / 484.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.809e-05/0.4452, allocations: 45.98 kB / 484.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.4453, allocations: 16.59 kB / 484.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.4454, allocations: 203 kB / 484.7 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.4454, allocations: 7.688 kB / 484.7 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.4455, allocations: 19.23 kB / 484.7 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.4458, allocations: 225.1 kB / 485 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.4458, allocations: 0 / 485 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.4458, allocations: 6.547 kB / 485 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4458, allocations: 4 kB / 485 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.446, allocations: 68.25 kB / 485 MB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004484/0.4464, allocations: 0.5906 MB / 485.6 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.4466, allocations: 138 kB / 485.8 MB, free: 6.238 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.224e-05/0.4467, allocations: 68.39 kB / 485.8 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.4468, allocations: 4 kB / 485.8 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.405e-05/0.4468, allocations: 38.45 kB / 485.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.4468, allocations: 0 / 485.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000228/0.447, allocations: 114.1 kB / 486 MB, free: 6.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.4471, allocations: 121.6 kB / 486.1 MB, free: 5.895 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.509e-05/0.4471, allocations: 116.6 kB / 486.2 MB, free: 5.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.4472, allocations: 33.06 kB / 486.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.4472, allocations: 108.8 kB / 486.3 MB, free: 5.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.4472, allocations: 30.28 kB / 486.4 MB, free: 5.617 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.4472, allocations: 0 / 486.4 MB, free: 5.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.895e-05/0.4473, allocations: 325.5 kB / 486.7 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.072e-05/0.4473, allocations: 22.88 kB / 486.7 MB, free: 5.277 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.986e-05/0.4474, allocations: 122.9 kB / 486.8 MB, free: 5.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.108e-05/0.4475, allocations: 46.11 kB / 486.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4475, allocations: 4 kB / 486.9 MB, free: 5.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001878/0.4477, allocations: 160.3 kB / 487 MB, free: 4.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.4477, allocations: 11.98 kB / 487.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.4477, allocations: 11.95 kB / 487.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.426e-05/0.4477, allocations: 4.875 kB / 487.1 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.4479, allocations: 47.92 kB / 487.1 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.4479, allocations: 11.92 kB / 487.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.415e-05/0.448, allocations: 23.53 kB / 487.2 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.448, allocations: 8 kB / 487.2 MB, free: 4.832 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 4.986e-05/0.4481, allocations: 120.4 kB / 487.3 MB, free: 4.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.4482, allocations: 80.53 kB / 487.4 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.402e-05/0.4483, allocations: 19.67 kB / 487.4 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4483, allocations: 7.953 kB / 487.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4483, allocations: 1.75 kB / 487.4 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4483, allocations: 4.031 kB / 487.4 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.4485, allocations: 207.3 kB / 487.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.4485, allocations: 8.641 kB / 487.6 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.4487, allocations: 35.97 kB / 487.6 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.4487, allocations: 7.938 kB / 487.6 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4487, allocations: 6.312 kB / 487.7 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4487, allocations: 0 / 487.7 MB, free: 4.332 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4487, allocations: 3.953 kB / 487.7 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.449, allocations: 363.6 kB / 488 MB, free: 3.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.449, allocations: 100.8 kB / 488.1 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.449, allocations: 7.438 kB / 488.1 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.4492, allocations: 4.562 kB / 488.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.4492, allocations: 7.984 kB / 488.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.4492, allocations: 6.938 kB / 488.1 MB, free: 3.852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.538e-05/0.4493, allocations: 96.7 kB / 488.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4493, allocations: 0 / 488.2 MB, free: 3.762 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.4496, allocations: 34.44 kB / 488.3 MB, free: 3.734 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.0003969/0.45, allocations: 1.042 MB / 489.3 MB, free: 2.703 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.4501, allocations: 93.81 kB / 489.4 MB, free: 2.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4501, allocations: 0 / 489.4 MB, free: 2.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.156e-05/0.4502, allocations: 19.61 kB / 489.4 MB, free: 2.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.4505, allocations: 46.38 kB / 489.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006183/0.4511, allocations: 344.6 kB / 489.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.4513, allocations: 0.7167 MB / 490.5 MB, free: 1.508 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.422e-05/0.4513, allocations: 13.2 kB / 490.5 MB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.075e-05/0.4514, allocations: 38.77 kB / 490.6 MB, free: 1.477 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4514, allocations: 4 kB / 490.6 MB, free: 1.473 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.4632, allocations: 2.404 MB / 493 MB, free: 15.32 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/0.4634, allocations: 180.1 kB / 493.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.454/1.918, allocations: 7.938 kB / 493.2 MB, free: 15.09 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat