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.001709/0.001709, allocations: 103.8 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.0018/0.0018, allocations: 195 kB / 18 MB, free: 5.094 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.981/1.981, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 39.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4666/0.4679, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.006412/0.4744, allocations: 2.054 MB / 402.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.4761, allocations: 0.5103 MB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.4764, allocations: 4 kB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.4766, allocations: 15.8 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.4769, allocations: 27.72 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.4774, allocations: 51.88 kB / 402.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.4778, allocations: 131.6 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.4781, allocations: 53.78 kB / 403.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.4783, allocations: 59.72 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.4784, allocations: 55.7 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.4785, allocations: 12 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.063e-05/0.4785, allocations: 8 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.054e-05/0.4786, allocations: 27.91 kB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.4787, allocations: 63.67 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.479, allocations: 129.2 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4791, allocations: 0 / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4791, allocations: 0 / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.4791, allocations: 0 / 403.4 MB, free: 5.621 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.000927/0.48, allocations: 431 kB / 403.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.4801, allocations: 15.88 kB / 403.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/0.4802, allocations: 38.75 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.909e-05/0.4803, allocations: 16.84 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.4807, allocations: 220 kB / 404.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.4807, allocations: 8.375 kB / 404.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.4808, allocations: 12.38 kB / 404.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007148/0.4815, allocations: 246.6 kB / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.4815, allocations: 0 / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.4816, allocations: 4 kB / 404.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.4816, allocations: 0 / 404.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003548/0.4819, allocations: 83.88 kB / 404.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009681/0.4829, allocations: 0.5998 MB / 405.1 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004878/0.4834, allocations: 155.9 kB / 405.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.4837, allocations: 70.64 kB / 405.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.4837, allocations: 0 / 405.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.4838, allocations: 46.55 kB / 405.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.4838, allocations: 0 / 405.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007859/0.4846, allocations: 173.3 kB / 405.5 MB, free: 3.285 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.4847, allocations: 114.8 kB / 405.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.4849, allocations: 142.2 kB / 405.7 MB, free: 3 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.4849, allocations: 33.83 kB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.485, allocations: 115.8 kB / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.4851, allocations: 23.7 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.4852, allocations: 37.7 kB / 405.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4854, allocations: 322.8 kB / 406.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.4855, allocations: 39.97 kB / 406.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.4858, allocations: 131.4 kB / 406.4 MB, free: 2.238 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.0006263/0.4865, allocations: 282.6 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.4865, allocations: 7.938 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005942/0.4871, allocations: 197.8 kB / 406.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.4871, allocations: 4 kB / 406.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.4871, allocations: 4 kB / 406.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.955e-05/0.4872, allocations: 4 kB / 406.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002596/0.4875, allocations: 59.84 kB / 407 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.86e-05/0.4875, allocations: 7.938 kB / 407 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.4877, allocations: 15.84 kB / 407 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.4877, allocations: 12 kB / 407 MB, free: 1.582 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.0002217/0.4879, allocations: 146.1 kB / 407.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.4882, allocations: 89.44 kB / 407.2 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.071e-05/0.4883, allocations: 16.72 kB / 407.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.4883, allocations: 4 kB / 407.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.4883, allocations: 3.984 kB / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4883, allocations: 0 / 407.3 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.4888, allocations: 205.5 kB / 407.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4888, allocations: 4 kB / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.4891, allocations: 43.91 kB / 407.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.4892, allocations: 4 kB / 407.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.4892, allocations: 8 kB / 407.5 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.4892, allocations: 3.984 kB / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4892, allocations: 0 / 407.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000799/0.49, allocations: 386.6 kB / 407.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.4901, allocations: 89.05 kB / 408 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.925e-05/0.4902, allocations: 7.984 kB / 408 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.4904, allocations: 8 kB / 408 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.4905, allocations: 3.984 kB / 408 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.4905, allocations: 4 kB / 408 MB, free: 484 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001065/0.4906, allocations: 106 kB / 408.1 MB, free: 380 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4906, allocations: 0 / 408.1 MB, free: 380 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006162/0.4913, allocations: 31.84 kB / 408.1 MB, free: 348 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.001224/0.4925, allocations: 0.9271 MB / 409.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.493, allocations: 127.8 kB / 409.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.4931, allocations: 0 / 409.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.4932, allocations: 32.84 kB / 409.2 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.0008733/0.4941, allocations: 56.45 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.003964/0.4981, allocations: 2.106 MB / 411.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.4985, allocations: 0.7162 MB / 412.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.538e-05/0.4986, allocations: 13.08 kB / 412.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.4987, allocations: 39.42 kB / 412.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4988, allocations: 3.938 kB / 412.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03683/0.5356, allocations: 3.064 MB / 415.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.77, allocations: 8.25 kB / 415.2 MB, free: 9.203 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