Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001284/0.001284, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001372/0.001372, allocations: 189.4 kB / 18 MB, free: 5.09 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.5/1.5, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002251, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2916, allocations: 49.45 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003827/0.2955, allocations: 2.029 MB / 402.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.2966, allocations: 0.557 MB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.2967, allocations: 4 kB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.2969, allocations: 19.73 kB / 402.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.2971, allocations: 43.7 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.2974, allocations: 67.8 kB / 402.9 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.2976, allocations: 123.6 kB / 403.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.2978, allocations: 57.84 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.665e-05/0.2979, allocations: 59.72 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.568e-05/0.298, allocations: 51.72 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.298, allocations: 12 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.756e-05/0.298, allocations: 12 kB / 403.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.389e-05/0.2981, allocations: 35.89 kB / 403.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.776e-05/0.2982, allocations: 63.61 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.2984, allocations: 146.3 kB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2984, allocations: 3.938 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2984, allocations: 0 / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.2985, allocations: 4 kB / 403.5 MB, free: 5.516 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006936/0.2992, allocations: 465.7 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.2992, allocations: 8.031 kB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.771e-05/0.2992, allocations: 42.75 kB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.2993, allocations: 20.84 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.2996, allocations: 220.1 kB / 404.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.2996, allocations: 12.38 kB / 404.2 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.2996, allocations: 16.38 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/0.3002, allocations: 263.4 kB / 404.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.3002, allocations: 3.984 kB / 404.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.3002, allocations: 4 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.3002, allocations: 0 / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.3005, allocations: 87.88 kB / 404.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006806/0.3012, allocations: 0.6038 MB / 405.2 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.3015, allocations: 151.9 kB / 405.4 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.3017, allocations: 74.64 kB / 405.4 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.3018, allocations: 4 kB / 405.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.3018, allocations: 38.55 kB / 405.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.3018, allocations: 3.938 kB / 405.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005505/0.3024, allocations: 193.7 kB / 405.7 MB, free: 3.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.705e-05/0.3025, allocations: 114.8 kB / 405.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.3026, allocations: 158.1 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.3027, allocations: 29.7 kB / 406 MB, free: 2.758 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.3028, allocations: 112.5 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.3028, allocations: 27.78 kB / 406.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.3029, allocations: 41.66 kB / 406.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.303, allocations: 326.9 kB / 406.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.3032, allocations: 35.97 kB / 406.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.3033, allocations: 131.4 kB / 406.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.3037, allocations: 201.4 kB / 406.8 MB, free: 1.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.3037, allocations: 3.938 kB / 406.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000395/0.3041, allocations: 189.3 kB / 407 MB, free: 1.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3041, allocations: 8 kB / 407 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3041, allocations: 4 kB / 407 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.3042, allocations: 4.234 kB / 407 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.3043, allocations: 43.91 kB / 407.1 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.3043, allocations: 11.94 kB / 407.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3045, allocations: 24.28 kB / 407.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.3045, allocations: 12 kB / 407.1 MB, free: 1.484 MB / 318.1 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 () * 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.000118/0.3046, allocations: 129.8 kB / 407.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.3048, allocations: 97.52 kB / 407.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.541e-05/0.3048, allocations: 20.7 kB / 407.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3049, allocations: 4 kB / 407.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3049, allocations: 0 / 407.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3049, allocations: 0 / 407.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.3052, allocations: 229.4 kB / 407.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3052, allocations: 4 kB / 407.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.3054, allocations: 35.92 kB / 407.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3054, allocations: 0 / 407.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.3054, allocations: 4 kB / 407.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3054, allocations: 7.984 kB / 407.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3054, allocations: 0 / 407.6 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.306, allocations: 390.8 kB / 408 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.831e-05/0.3061, allocations: 109 kB / 408.1 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.3061, allocations: 3.938 kB / 408.1 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.3063, allocations: 12 kB / 408.1 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.3063, allocations: 3.984 kB / 408.1 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.3063, allocations: 8 kB / 408.2 MB, free: 352 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.789e-05/0.3064, allocations: 123.3 kB / 408.3 MB, free: 228 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3064, allocations: 0 / 408.3 MB, free: 228 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003373/0.3068, allocations: 24 kB / 408.3 MB, free: 204 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.0008949/0.3077, allocations: 0.9271 MB / 409.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003421/0.308, allocations: 119.8 kB / 409.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3081, allocations: 0.9375 kB / 409.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3082, allocations: 31.92 kB / 409.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005038/0.3087, allocations: 71.84 kB / 409.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.3112, allocations: 2.096 MB / 411.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.3115, allocations: 0.7278 MB / 412.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.74e-05/0.3116, allocations: 9.422 kB / 412.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.289e-05/0.3117, allocations: 39.42 kB / 412.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3117, allocations: 0 / 412.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.3466, allocations: 2.985 MB / 415.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.572/8.919, allocations: 12.36 kB / 415.3 MB, free: 9.137 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches