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.00133/0.00133, allocations: 115 kB / 16.63 MB, free: 6.812 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.001258/0.001258, allocations: 186 kB / 17.55 MB, free: 5.934 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.433/1.433, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 46.25 kB / 300.2 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 49.45 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003495/0.1093, allocations: 1.921 MB / 351.6 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000817/0.1102, allocations: 442.9 kB / 352 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1103, allocations: 0 / 352 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.1105, allocations: 15.92 kB / 352 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.735e-05/0.1106, allocations: 27.77 kB / 352.1 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.1107, allocations: 23.98 kB / 352.1 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.1109, allocations: 103.6 kB / 352.2 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.1111, allocations: 37.39 kB / 352.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.965e-05/0.1112, allocations: 43.84 kB / 352.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.752e-05/0.1113, allocations: 43.78 kB / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.1113, allocations: 8 kB / 352.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.844e-05/0.1113, allocations: 8 kB / 352.3 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.658e-05/0.1113, allocations: 19.92 kB / 352.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.471e-05/0.1114, allocations: 47.73 kB / 352.4 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.1116, allocations: 95.91 kB / 352.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1116, allocations: 0 / 352.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1116, allocations: 0 / 352.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1116, allocations: 0 / 352.5 MB, free: 1.801 MB / 286.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.000589/0.1122, allocations: 415.2 kB / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.1122, allocations: 12.03 kB / 352.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.731e-05/0.1123, allocations: 42.75 kB / 353 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.825e-05/0.1124, allocations: 8.844 kB / 353 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.1125, allocations: 192.1 kB / 353.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1126, allocations: 8.562 kB / 353.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.1126, allocations: 20 kB / 353.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.1129, allocations: 115.4 kB / 353.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.1129, allocations: 3.984 kB / 353.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.1129, allocations: 8 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.113, allocations: 0 / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.1132, allocations: 71.91 kB / 353.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007063/0.1139, allocations: 0.5324 MB / 353.9 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.1141, allocations: 74.61 kB / 354 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.1142, allocations: 44.83 kB / 354 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.36e-05/0.1143, allocations: 0 / 354 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.1143, allocations: 30.56 kB / 354.1 MB, free: 52 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.1143, allocations: 0 / 354.1 MB, free: 52 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004266/0.1147, allocations: 133.8 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.1148, allocations: 59.41 kB / 354.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1149, allocations: 121.8 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.1149, allocations: 29.7 kB / 354.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.709e-05/0.115, allocations: 115.8 kB / 354.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.457e-05/0.115, allocations: 23.66 kB / 354.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.349e-05/0.1151, allocations: 29.7 kB / 354.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1152, allocations: 318.8 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.1153, allocations: 39.97 kB / 354.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.1154, allocations: 68.27 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.1157, allocations: 112.1 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1157, allocations: 0 / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002955/0.116, allocations: 133.4 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.116, allocations: 6.656 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.116, allocations: 4.094 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1161, allocations: 4.062 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.1162, allocations: 35.98 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.1163, allocations: 4 kB / 355.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.87e-05/0.1163, allocations: 15.83 kB / 355.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.1164, allocations: 4 kB / 355.3 MB, free: 14.73 MB / 302.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 9.25e-05/0.1165, allocations: 125.7 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.1165, allocations: 7.906 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.81e-05/0.1165, allocations: 16.36 kB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1166, allocations: 4 kB / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1166, allocations: 0 / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1166, allocations: 0 / 355.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.1168, allocations: 197.6 kB / 355.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1168, allocations: 4 kB / 355.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.1169, allocations: 23.97 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.117, allocations: 0 / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.117, allocations: 4 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.117, allocations: 0 / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.117, allocations: 0 / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004329/0.1174, allocations: 239.3 kB / 355.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.1175, allocations: 85.02 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.1175, allocations: 0 / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.348e-05/0.1176, allocations: 8.031 kB / 356 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.1177, allocations: 0 / 356 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.1177, allocations: 11.98 kB / 356 MB, free: 13.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.369e-05/0.1178, allocations: 106.4 kB / 356.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1178, allocations: 0 / 356.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000267/0.1181, allocations: 23.91 kB / 356.1 MB, free: 13.8 MB / 302.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.0007279/0.1188, allocations: 0.7669 MB / 356.9 MB, free: 13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002915/0.1191, allocations: 83.92 kB / 357 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1191, allocations: 0 / 357 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1192, allocations: 39.92 kB / 357 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.1197, allocations: 27.05 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.1219, allocations: 1.754 MB / 358.8 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.1222, allocations: 0.7002 MB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.395e-05/0.1222, allocations: 12.41 kB / 359.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.443e-05/0.1223, allocations: 31.42 kB / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1223, allocations: 0 / 359.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01421/0.1365, allocations: 2.202 MB / 361.7 MB, free: 8.164 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.1368, allocations: 218 kB / 362 MB, free: 7.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.958/2.094, allocations: 0 / 362 MB, free: 7.906 MB / 302.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