Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 103.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 56.59 kB / 306.3 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09456/0.09634, allocations: 50.53 MB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003177/0.09955, allocations: 1.941 MB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008396/0.1004, allocations: 486.8 kB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.554e-05/0.1006, allocations: 0 / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.619e-05/0.1007, allocations: 19.8 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.168e-05/0.1007, allocations: 15.86 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.1009, allocations: 39.91 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.101, allocations: 91.66 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1011, allocations: 37.36 kB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.004e-05/0.1012, allocations: 31.86 kB / 359.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.578e-05/0.1013, allocations: 47.78 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.1013, allocations: 8 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.1014, allocations: 4 kB / 359.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.527e-05/0.1014, allocations: 19.92 kB / 359.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.878e-05/0.1014, allocations: 43.73 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.1016, allocations: 95.89 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1016, allocations: 0 / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1016, allocations: 0 / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.1016, allocations: 0 / 359.7 MB, free: 11.34 MB / 302.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.0005203/0.1021, allocations: 407.3 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.1022, allocations: 12.03 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.399e-05/0.1022, allocations: 46.67 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.1023, allocations: 16.75 kB / 360.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.1024, allocations: 188.2 kB / 360.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.1025, allocations: 8.562 kB / 360.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.1025, allocations: 12.12 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.1028, allocations: 126.7 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1028, allocations: 0 / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.1028, allocations: 8 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.1028, allocations: 0 / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.1031, allocations: 71.94 kB / 360.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006312/0.1037, allocations: 0.5168 MB / 361.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.1039, allocations: 86.52 kB / 361.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.104, allocations: 40.84 kB / 361.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.1041, allocations: 160 / 361.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.1041, allocations: 30.56 kB / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.1041, allocations: 0 / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004132/0.1045, allocations: 129.5 kB / 361.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.1046, allocations: 55.41 kB / 361.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.1047, allocations: 128.1 kB / 361.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1047, allocations: 25.7 kB / 361.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.1048, allocations: 115.8 kB / 361.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.542e-05/0.1048, allocations: 31.58 kB / 361.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-05/0.1049, allocations: 25.72 kB / 361.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.105, allocations: 322.8 kB / 362.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1051, allocations: 35.92 kB / 362.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.1053, allocations: 72.25 kB / 362.2 MB, free: 8.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.1055, allocations: 100.2 kB / 362.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1055, allocations: 0 / 362.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002985/0.1058, allocations: 133.4 kB / 362.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1058, allocations: 7.938 kB / 362.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1058, allocations: 4 kB / 362.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1059, allocations: 0 / 362.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.106, allocations: 40.09 kB / 362.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.106, allocations: 320 / 362.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.768e-05/0.1061, allocations: 15.84 kB / 362.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.1061, allocations: 4 kB / 362.5 MB, free: 8.285 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 0.0001003/0.1063, allocations: 134.7 kB / 362.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1063, allocations: 7.906 kB / 362.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.586e-05/0.1063, allocations: 12.38 kB / 362.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1063, allocations: 0 / 362.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.1063, allocations: 0 / 362.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-06/0.1064, allocations: 4 kB / 362.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.1066, allocations: 201.5 kB / 362.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1066, allocations: 0 / 362.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.1067, allocations: 23.98 kB / 362.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1067, allocations: 0 / 362.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1068, allocations: 4 kB / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1068, allocations: 0 / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1068, allocations: 0 / 362.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.1072, allocations: 247.3 kB / 363.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.1073, allocations: 85.05 kB / 363.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.1073, allocations: 4 kB / 363.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.176e-05/0.1074, allocations: 4 kB / 363.2 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.1074, allocations: 3.984 kB / 363.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.1075, allocations: 4 kB / 363.2 MB, free: 7.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.091e-05/0.1075, allocations: 103.3 kB / 363.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.685e-06/0.1075, allocations: 0 / 363.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1078, allocations: 31.78 kB / 363.4 MB, free: 7.34 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.0006496/0.1084, allocations: 0.767 MB / 364.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002537/0.1087, allocations: 79.89 kB / 364.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1087, allocations: 0 / 364.2 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1088, allocations: 31.97 kB / 364.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1092, allocations: 19.98 kB / 364.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.1114, allocations: 1.761 MB / 366 MB, free: 4.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.1117, allocations: 0.7004 MB / 366.7 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.252e-05/0.1118, allocations: 4.438 kB / 366.7 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.193e-05/0.1119, allocations: 31.42 kB / 366.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1119, allocations: 0 / 366.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01226/0.1241, allocations: 2.13 MB / 368.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003132/0.1245, allocations: 213.8 kB / 369.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/1.875, allocations: 7.016 kB / 369.1 MB, free: 1.512 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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