Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",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.001502/0.001502, allocations: 103.9 kB / 17.06 MB, free: 6.012 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.001784/0.001784, 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 2.167/2.167, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 43.94 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4904/0.4918, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004629/0.4966, allocations: 1.866 MB / 402.1 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.4977, allocations: 446.8 kB / 402.5 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.4979, allocations: 8 kB / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.4981, allocations: 15.8 kB / 402.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.978e-05/0.4982, allocations: 23.78 kB / 402.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.4985, allocations: 27.97 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002136/0.4987, allocations: 103.6 kB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.4989, allocations: 49.36 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.499, allocations: 35.86 kB / 402.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.4991, allocations: 47.77 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.4992, allocations: 8 kB / 402.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.201e-05/0.4992, allocations: 8 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.174e-05/0.4992, allocations: 15.94 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.913e-05/0.4993, allocations: 59.66 kB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.4996, allocations: 101.3 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4996, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4996, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.4996, allocations: 4 kB / 403 MB, free: 6.031 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007184/0.5003, allocations: 410.4 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.5004, allocations: 8.031 kB / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.57e-05/0.5004, allocations: 42.73 kB / 403.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.5005, allocations: 8.844 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.5009, allocations: 200.1 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.5009, allocations: 4.562 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.5009, allocations: 12.12 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.5012, allocations: 119.4 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.5013, allocations: 0 / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.5013, allocations: 8 kB / 403.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.5013, allocations: 4 kB / 403.8 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.5015, allocations: 71.83 kB / 403.9 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.5023, allocations: 0.5363 MB / 404.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.5025, allocations: 78.48 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.5026, allocations: 44.83 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.5026, allocations: 0 / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.5027, allocations: 30.56 kB / 404.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 9.61e-07/0.5027, allocations: 7.938 kB / 404.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000412/0.5031, allocations: 113.6 kB / 404.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.5032, allocations: 51.41 kB / 404.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.5033, allocations: 133.8 kB / 404.9 MB, free: 3.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.5033, allocations: 25.7 kB / 404.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.171e-05/0.5034, allocations: 107.9 kB / 405 MB, free: 3.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.951e-05/0.5034, allocations: 35.69 kB / 405 MB, free: 3.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-05/0.5035, allocations: 29.7 kB / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.5036, allocations: 326.7 kB / 405.4 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.5037, allocations: 31.97 kB / 405.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.5039, allocations: 64.27 kB / 405.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.5041, allocations: 108.2 kB / 405.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.5041, allocations: 0 / 405.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002793/0.5044, allocations: 129.4 kB / 405.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.5044, allocations: 11.98 kB / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.5044, allocations: 0 / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.5044, allocations: 0 / 405.7 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.5046, allocations: 36.05 kB / 405.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.5046, allocations: 4 kB / 405.8 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.803e-05/0.5047, allocations: 15.89 kB / 405.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.5047, allocations: 4.312 kB / 405.8 MB, free: 2.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001166/0.5049, allocations: 129.7 kB / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.5049, allocations: 96 / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.809e-05/0.5049, allocations: 16.31 kB / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.5049, allocations: 0 / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.505, allocations: 0 / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.505, allocations: 7.984 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.5052, allocations: 201.4 kB / 406.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5052, allocations: 0 / 406.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.5053, allocations: 23.98 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.5054, allocations: 0 / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.5054, allocations: 7.969 kB / 406.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5054, allocations: 0 / 406.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5054, allocations: 0 / 406.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.5058, allocations: 239.3 kB / 406.4 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.5059, allocations: 85.02 kB / 406.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.5059, allocations: 11.94 kB / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.011e-05/0.506, allocations: 8.031 kB / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.056e-05/0.506, allocations: 7.938 kB / 406.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.506, allocations: 0 / 406.5 MB, free: 2.164 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.63e-05/0.5061, allocations: 106.5 kB / 406.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5061, allocations: 0 / 406.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002591/0.5064, allocations: 19.94 kB / 406.6 MB, free: 2.043 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0007866/0.5072, allocations: 0.7708 MB / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002893/0.5075, allocations: 83.88 kB / 407.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.5075, allocations: 0 / 407.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.5076, allocations: 31.97 kB / 407.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.508, allocations: 19.98 kB / 407.5 MB, free: 1.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.5109, allocations: 1.74 MB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.5113, allocations: 0.7078 MB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.274e-05/0.5113, allocations: 8.438 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.226e-05/0.5114, allocations: 31.53 kB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5114, allocations: 0 / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.5343, allocations: 2.418 MB / 412.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.34, allocations: 12.62 kB / 412.4 MB, free: 12.18 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,der(PI.x),der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport