Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",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.0009424/0.0009423, allocations: 177.1 kB / 13.64 MB, free: 1.676 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.321/1.321, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0009105/0.0009104, allocations: 95.55 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.536e-05/2.541e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08885/0.08889, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/0.3698, allocations: 78.72 MB / 473.1 MB, free: 8.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.37, allocations: 71.95 kB / 473.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007032/0.3771, allocations: 2.646 MB / 475.8 MB, free: 6.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3771, allocations: 192 / 475.8 MB, free: 6.059 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.3771, allocations: 11.88 kB / 475.8 MB, free: 6.047 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004662/0.3776, allocations: 415.2 kB / 476.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.3776, allocations: 8.031 kB / 476.2 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.185e-05/0.3777, allocations: 50.5 kB / 476.2 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.3777, allocations: 11.91 kB / 476.3 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.378, allocations: 194.8 kB / 476.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.378, allocations: 12 kB / 476.5 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.378, allocations: 12 kB / 476.5 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003934/0.3784, allocations: 228.8 kB / 476.7 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3785, allocations: 0 / 476.7 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.3785, allocations: 3.953 kB / 476.7 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.3785, allocations: 4 kB / 476.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.3786, allocations: 59.94 kB / 476.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006522/0.3793, allocations: 0.5999 MB / 477.4 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.3796, allocations: 144.1 kB / 477.5 MB, free: 4.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.034e-05/0.3796, allocations: 58.58 kB / 477.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3797, allocations: 8 kB / 477.6 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.3797, allocations: 30.56 kB / 477.6 MB, free: 3.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.3797, allocations: 0 / 477.6 MB, free: 3.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002405/0.38, allocations: 117.5 kB / 477.7 MB, free: 3.875 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.38, allocations: 114.8 kB / 477.8 MB, free: 3.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.3801, allocations: 128.2 kB / 477.9 MB, free: 3.605 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3802, allocations: 33.73 kB / 478 MB, free: 3.566 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.779e-05/0.3802, allocations: 112 kB / 478.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.3803, allocations: 27.69 kB / 478.1 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.3803, allocations: 4 kB / 478.1 MB, free: 3.422 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.841e-05/0.3804, allocations: 322.8 kB / 478.4 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.768e-05/0.3804, allocations: 28.31 kB / 478.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.924e-05/0.3805, allocations: 122.4 kB / 478.6 MB, free: 2.898 MB / 346.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.3807, allocations: 141.2 kB / 478.7 MB, free: 2.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.3807, allocations: 3.938 kB / 478.7 MB, free: 2.738 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002344/0.381, allocations: 169.6 kB / 478.9 MB, free: 2.566 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.381, allocations: 8 kB / 478.9 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.381, allocations: 8 kB / 478.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.381, allocations: 4 kB / 478.9 MB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.3812, allocations: 51.91 kB / 479 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.3812, allocations: 7.938 kB / 479 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.3813, allocations: 23.94 kB / 479 MB, free: 2.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.3814, allocations: 8 kB / 479 MB, free: 2.457 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 7.888e-05/0.3814, allocations: 124.9 kB / 479.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.3816, allocations: 85.5 kB / 479.2 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.3816, allocations: 16.61 kB / 479.2 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3816, allocations: 4 kB / 479.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3817, allocations: 0 / 479.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.3817, allocations: 3.938 kB / 479.2 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.3819, allocations: 209.6 kB / 479.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3819, allocations: 0 / 479.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.3821, allocations: 47.91 kB / 479.5 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3822, allocations: 7.984 kB / 479.5 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3822, allocations: 0 / 479.5 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3822, allocations: 4 kB / 479.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3822, allocations: 0 / 479.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003831/0.3826, allocations: 377.4 kB / 479.9 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/0.3826, allocations: 92.97 kB / 480 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.3827, allocations: 0 / 480 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.3828, allocations: 12 kB / 480 MB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.3829, allocations: 11.94 kB / 480 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.3829, allocations: 4 kB / 480 MB, free: 1.371 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.383, allocations: 105.8 kB / 480.1 MB, free: 1.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.383, allocations: 0 / 480.1 MB, free: 1.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002904/0.3833, allocations: 31.97 kB / 480.1 MB, free: 1.238 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.0007146/0.384, allocations: 1.047 MB / 481.2 MB, free: 156 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.3842, allocations: 99.88 kB / 481.3 MB, free: 56 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3842, allocations: 0 / 481.3 MB, free: 56 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.646e-05/0.3843, allocations: 19.94 kB / 481.3 MB, free: 36 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.3846, allocations: 49.91 kB / 481.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009055/0.3856, allocations: 365.5 kB / 481.7 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.3859, allocations: 0.7245 MB / 482.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.312e-05/0.386, allocations: 17.14 kB / 482.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.386, allocations: 39.42 kB / 482.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.386, allocations: 0 / 482.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0127/0.3988, allocations: 2.589 MB / 485.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.3989, allocations: 210.3 kB / 485.3 MB, free: 12.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/1.93, allocations: 2.344 kB / 485.3 MB, free: 12.14 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat does not exist to compare? outputFormat=mat