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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 105.3 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 51.91 kB / 350.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2923, allocations: 49.45 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003849/0.2962, allocations: 2.044 MB / 402.3 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2973, allocations: 0.5103 MB / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.2974, allocations: 3.938 kB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001267/0.2975, allocations: 19.8 kB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.427e-05/0.2977, allocations: 19.78 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.298, allocations: 55.88 kB / 402.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002038/0.2982, allocations: 127.5 kB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2984, allocations: 57.73 kB / 403.1 MB, free: 6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.069e-05/0.2984, allocations: 51.78 kB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.808e-05/0.2986, allocations: 55.72 kB / 403.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.2986, allocations: 8 kB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.713e-05/0.2986, allocations: 12 kB / 403.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.087e-05/0.2987, allocations: 27.91 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.102e-05/0.2987, allocations: 63.61 kB / 403.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.299, allocations: 130.4 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.299, allocations: 0 / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.359e-06/0.299, allocations: 0 / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.299, allocations: 3.938 kB / 403.4 MB, free: 5.656 MB / 318.1 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.0006661/0.2997, allocations: 430.9 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2997, allocations: 15.89 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.768e-05/0.2998, allocations: 46.73 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.2998, allocations: 16.84 kB / 403.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.3001, allocations: 220 kB / 404.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.3002, allocations: 20.36 kB / 404.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.3002, allocations: 12.38 kB / 404.1 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.3007, allocations: 242.7 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3008, allocations: 0 / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.3008, allocations: 4 kB / 404.4 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3008, allocations: 4 kB / 404.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.3011, allocations: 83.88 kB / 404.5 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.3019, allocations: 0.596 MB / 405.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.3023, allocations: 147.9 kB / 405.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3025, allocations: 70.64 kB / 405.3 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.3025, allocations: 11.92 kB / 405.3 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.3025, allocations: 38.56 kB / 405.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.552e-06/0.3025, allocations: 0 / 405.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005672/0.3031, allocations: 181.6 kB / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.855e-05/0.3032, allocations: 118.8 kB / 405.6 MB, free: 3.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.3034, allocations: 134.2 kB / 405.8 MB, free: 3.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.209e-05/0.3034, allocations: 29.7 kB / 405.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.816e-05/0.3035, allocations: 116.2 kB / 405.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.3035, allocations: 27.78 kB / 405.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.957e-05/0.3036, allocations: 37.7 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3038, allocations: 326.8 kB / 406.3 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3039, allocations: 35.97 kB / 406.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.3041, allocations: 143.3 kB / 406.5 MB, free: 2.246 MB / 318.1 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 = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.3046, allocations: 278.7 kB / 406.7 MB, free: 1.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.3046, allocations: 3.938 kB / 406.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004045/0.305, allocations: 193.6 kB / 406.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3051, allocations: 12.09 kB / 406.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3051, allocations: 4 kB / 406.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3051, allocations: 4 kB / 406.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3053, allocations: 43.92 kB / 407 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.3053, allocations: 7.984 kB / 407 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3054, allocations: 19.89 kB / 407 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3054, allocations: 12 kB / 407 MB, free: 1.605 MB / 318.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.3056, allocations: 137.7 kB / 407.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.3057, allocations: 93.77 kB / 407.2 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.609e-05/0.3058, allocations: 16.72 kB / 407.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.3058, allocations: 3.984 kB / 407.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3058, allocations: 0 / 407.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3058, allocations: 7.984 kB / 407.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.3061, allocations: 213.4 kB / 407.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3062, allocations: 0 / 407.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3064, allocations: 43.91 kB / 407.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.3064, allocations: 4 kB / 407.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.3064, allocations: 4 kB / 407.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.491e-06/0.3064, allocations: 8 kB / 407.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3064, allocations: 0 / 407.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.307, allocations: 382.9 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.198e-05/0.3071, allocations: 93.2 kB / 408 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.3071, allocations: 7.938 kB / 408 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.3073, allocations: 7.984 kB / 408 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.727e-05/0.3074, allocations: 15.92 kB / 408 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.3074, allocations: 4 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.682e-05/0.3075, allocations: 106 kB / 408.1 MB, free: 388 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3075, allocations: 0 / 408.1 MB, free: 388 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000376/0.3079, allocations: 27.94 kB / 408.2 MB, free: 360 kB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00112/0.309, allocations: 0.9233 MB / 409.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004775/0.3095, allocations: 135.7 kB / 409.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3095, allocations: 0 / 409.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.3096, allocations: 28.92 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005764/0.3102, allocations: 66.11 kB / 409.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.3136, allocations: 2.109 MB / 411.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.3141, allocations: 0.7123 MB / 412.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.295e-05/0.3142, allocations: 9.094 kB / 412.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.343e-05/0.3143, allocations: 39.42 kB / 412.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3143, allocations: 0 / 412.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.3438, allocations: 3.005 MB / 415.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.681/9.025, allocations: 4.188 kB / 415.2 MB, free: 9.277 MB / 334.1 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches