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.0009684/0.0009684, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008648/0.0008648, allocations: 99.97 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003008, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2495, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09706/0.3467, allocations: 78.79 MB / 480.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.3469, allocations: 75.97 kB / 480.4 MB, free: 1.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007064/0.354, allocations: 2.663 MB / 483.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.354, allocations: 0 / 483.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3541, allocations: 0 / 483.1 MB, free: 14.93 MB / 362.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.0005064/0.3546, allocations: 422.9 kB / 483.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3546, allocations: 8.031 kB / 483.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/0.3547, allocations: 50.5 kB / 483.6 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.897e-05/0.3547, allocations: 15.81 kB / 483.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.3549, allocations: 199 kB / 483.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.355, allocations: 11.94 kB / 483.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.355, allocations: 19.98 kB / 483.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.3555, allocations: 230.6 kB / 484 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.3555, allocations: 0 / 484 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.3556, allocations: 11.95 kB / 484 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3556, allocations: 7.984 kB / 484.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.3558, allocations: 91.88 kB / 484.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.3565, allocations: 0.5999 MB / 484.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003383/0.3568, allocations: 153.7 kB / 484.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3569, allocations: 4 kB / 484.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3569, allocations: 34.56 kB / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3569, allocations: 3.938 kB / 484.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005143/0.3574, allocations: 197.5 kB / 485.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.3575, allocations: 110.8 kB / 485.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.587e-05/0.3576, allocations: 132.2 kB / 485.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.3576, allocations: 25.7 kB / 485.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.887e-05/0.3577, allocations: 115.9 kB / 485.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.3577, allocations: 27.73 kB / 485.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-06/0.3577, allocations: 4.375 kB / 485.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.3578, allocations: 322.9 kB / 485.9 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.358, allocations: 44.34 kB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.3582, allocations: 137.7 kB / 486 MB, free: 11.66 MB / 362.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.0002997/0.3585, allocations: 161 kB / 486.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3585, allocations: 0 / 486.2 MB, free: 11.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000372/0.3589, allocations: 213.1 kB / 486.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3589, allocations: 4 kB / 486.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3589, allocations: 7.938 kB / 486.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3589, allocations: 4 kB / 486.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.3591, allocations: 51.91 kB / 486.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3591, allocations: 4 kB / 486.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3592, allocations: 28.25 kB / 486.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.3593, allocations: 15.95 kB / 486.5 MB, free: 11.16 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.0001041/0.3594, allocations: 133.8 kB / 486.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.3595, allocations: 85.53 kB / 486.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.3596, allocations: 16.72 kB / 486.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3596, allocations: 4.234 kB / 486.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3596, allocations: 3.984 kB / 486.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3596, allocations: 4 kB / 486.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.3599, allocations: 221.4 kB / 487 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3599, allocations: 0 / 487 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.3601, allocations: 43.97 kB / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3601, allocations: 4 kB / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.3601, allocations: 0 / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3601, allocations: 4 kB / 487 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3602, allocations: 3.938 kB / 487 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.3607, allocations: 425.6 kB / 487.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.3608, allocations: 88.95 kB / 487.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/0.3608, allocations: 7.984 kB / 487.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.3609, allocations: 8 kB / 487.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.361, allocations: 11.94 kB / 487.6 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.361, allocations: 4 kB / 487.6 MB, free: 9.992 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.3611, allocations: 110.2 kB / 487.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3611, allocations: 0 / 487.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003079/0.3614, allocations: 24 kB / 487.7 MB, free: 9.863 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.0008236/0.3622, allocations: 1.103 MB / 488.8 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003079/0.3625, allocations: 131.8 kB / 488.9 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3625, allocations: 0.9375 kB / 488.9 MB, free: 8.594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.3627, allocations: 39.91 kB / 489 MB, free: 8.555 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.363, allocations: 57.78 kB / 489 MB, free: 8.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.3653, allocations: 3.315 MB / 492.3 MB, free: 5.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.3656, allocations: 0.7206 MB / 493.1 MB, free: 4.316 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.41e-05/0.3657, allocations: 5.094 kB / 493.1 MB, free: 4.312 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.3658, allocations: 39.42 kB / 493.1 MB, free: 4.273 MB / 362.7 MB Notification: Performance of SimCode: time 8.71e-07/0.3658, allocations: 4 kB / 493.1 MB, free: 4.27 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01326/0.379, allocations: 2.594 MB / 495.7 MB, free: 1.891 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.3793, allocations: 236.6 kB / 495.9 MB, free: 1.645 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.101, allocations: 7.344 kB / 495.9 MB, free: 1.641 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