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.002295/0.002305, allocations: 112.7 kB / 17.06 MB, free: 5.996 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.003103/0.003103, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.338/3.338, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 39.94 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.872/0.874, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.01776/0.8919, allocations: 2.049 MB / 402.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.8938, allocations: 0.5025 MB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.894, allocations: 4 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000194/0.8942, allocations: 19.73 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.8944, allocations: 35.7 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.8949, allocations: 57.88 kB / 402.9 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002947/0.8952, allocations: 127.6 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.8955, allocations: 61.78 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.8956, allocations: 51.72 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.8958, allocations: 59.7 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.8958, allocations: 12 kB / 403.2 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.771e-05/0.8959, allocations: 8 kB / 403.2 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.139e-05/0.8959, allocations: 23.92 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.14e-05/0.896, allocations: 63.66 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.8964, allocations: 125.2 kB / 403.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.8964, allocations: 0 / 403.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.26e-06/0.8964, allocations: 0 / 403.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.8964, allocations: 7.938 kB / 403.4 MB, free: 5.602 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.0009518/0.8974, allocations: 431 kB / 403.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.979e-05/0.8975, allocations: 11.89 kB / 403.8 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.928e-05/0.8976, allocations: 50.73 kB / 403.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.8976, allocations: 12.84 kB / 403.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005974/0.8982, allocations: 212 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.8983, allocations: 4.375 kB / 404.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.58e-05/0.8984, allocations: 28.3 kB / 404.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008589/0.8993, allocations: 226.8 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.8993, allocations: 0 / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.8994, allocations: 15.98 kB / 404.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.8994, allocations: 0 / 404.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003751/0.8998, allocations: 83.88 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.901, allocations: 0.5959 MB / 405.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.9015, allocations: 147.9 kB / 405.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002413/0.9018, allocations: 74.64 kB / 405.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.446e-05/0.9019, allocations: 7.969 kB / 405.3 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.9019, allocations: 34.56 kB / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.9019, allocations: 0 / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007953/0.9027, allocations: 185.3 kB / 405.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.9029, allocations: 114.8 kB / 405.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/0.9031, allocations: 134.2 kB / 405.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.9031, allocations: 29.7 kB / 405.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.9032, allocations: 123.7 kB / 405.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.829e-05/0.9033, allocations: 23.72 kB / 405.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.699e-05/0.9034, allocations: 33.7 kB / 405.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.9036, allocations: 327 kB / 406.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.9038, allocations: 39.97 kB / 406.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.9041, allocations: 135.2 kB / 406.4 MB, free: 2.223 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.0007061/0.9048, allocations: 278.6 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.9048, allocations: 7.938 kB / 406.7 MB, free: 1.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006171/0.9054, allocations: 193.2 kB / 406.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.9055, allocations: 4 kB / 406.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.9055, allocations: 7.938 kB / 406.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.631e-05/0.9056, allocations: 4 kB / 406.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002483/0.9058, allocations: 48.38 kB / 407 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.9059, allocations: 11.94 kB / 407 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.906, allocations: 23.83 kB / 407 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/0.9061, allocations: 12 kB / 407 MB, free: 1.57 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.0002108/0.9063, allocations: 133.7 kB / 407.1 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.9065, allocations: 85.5 kB / 407.2 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.012e-05/0.9066, allocations: 20.7 kB / 407.2 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.9067, allocations: 4 kB / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.9067, allocations: 4 kB / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.9067, allocations: 0 / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004676/0.9072, allocations: 217.5 kB / 407.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.9072, allocations: 0 / 407.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.9075, allocations: 44.44 kB / 407.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.9075, allocations: 3.984 kB / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.9076, allocations: 8 kB / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.9076, allocations: 0 / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.9076, allocations: 0 / 407.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008533/0.9085, allocations: 395.2 kB / 407.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.9086, allocations: 85.05 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.9086, allocations: 4 kB / 408 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.9088, allocations: 11.98 kB / 408 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.9089, allocations: 8.062 kB / 408 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.9089, allocations: 0 / 408 MB, free: 468 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.9091, allocations: 110 kB / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.9091, allocations: 0 / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005874/0.9097, allocations: 35.84 kB / 408.2 MB, free: 324 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.001256/0.9109, allocations: 0.9236 MB / 409.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005401/0.9115, allocations: 124.6 kB / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.9115, allocations: 0 / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.9117, allocations: 32 kB / 409.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008449/0.9125, allocations: 63.59 kB / 409.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009515/0.9221, allocations: 2.098 MB / 411.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004692/0.9226, allocations: 0.7162 MB / 412.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.52e-05/0.9227, allocations: 13.02 kB / 412.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.9228, allocations: 43.42 kB / 412.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of SimCode: time 1.813e-06/0.9229, allocations: 0 / 412.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06557/0.9884, allocations: 3.058 MB / 415.2 MB, free: 9.199 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.83/18.82, allocations: 11.62 kB / 415.2 MB, free: 9.191 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