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.001477/0.001478, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 61.16 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09968, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003667/0.1034, allocations: 1.871 MB / 359.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008682/0.1043, allocations: 490.8 kB / 359.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1044, allocations: 15.88 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.1046, allocations: 11.88 kB / 360 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.1047, allocations: 23.78 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.1049, allocations: 23.97 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.1051, allocations: 107.6 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1053, allocations: 45.36 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.1054, allocations: 35.92 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.978e-05/0.1055, allocations: 47.72 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.328e-05/0.1055, allocations: 8 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.152e-05/0.1056, allocations: 8 kB / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.901e-05/0.1056, allocations: 23.91 kB / 360.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.303e-05/0.1057, allocations: 43.73 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.1059, allocations: 103.9 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1059, allocations: 0 / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1059, allocations: 0 / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1059, allocations: 0 / 360.4 MB, free: 11.18 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.0006005/0.1065, allocations: 407.3 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1065, allocations: 8.031 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.366e-05/0.1066, allocations: 42.75 kB / 360.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.1066, allocations: 20.67 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.1068, allocations: 192.1 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.1069, allocations: 8.562 kB / 361.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/0.1069, allocations: 16.12 kB / 361.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002687/0.1072, allocations: 119.3 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1072, allocations: 4 kB / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1072, allocations: 0 / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.1072, allocations: 0 / 361.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1075, allocations: 75.88 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008274/0.1083, allocations: 0.5207 MB / 361.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.1086, allocations: 74.61 kB / 361.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1087, allocations: 44.83 kB / 361.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.1087, allocations: 3.938 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1088, allocations: 30.56 kB / 362 MB, free: 9.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.1088, allocations: 0 / 362 MB, free: 9.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.1093, allocations: 125.8 kB / 362.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.1093, allocations: 55.41 kB / 362.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.1095, allocations: 129.8 kB / 362.3 MB, free: 9.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.1095, allocations: 29.7 kB / 362.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.929e-05/0.1096, allocations: 115.8 kB / 362.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.1097, allocations: 27.8 kB / 362.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/0.1097, allocations: 29.7 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.1099, allocations: 318.8 kB / 362.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1101, allocations: 35.98 kB / 362.8 MB, free: 8.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1102, allocations: 68.2 kB / 362.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.1104, allocations: 104.2 kB / 363 MB, free: 8.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1104, allocations: 0 / 363 MB, free: 8.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002997/0.1107, allocations: 141.4 kB / 363.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1108, allocations: 4 kB / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1108, allocations: 4 kB / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1108, allocations: 4.125 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.111, allocations: 31.92 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.927e-05/0.111, allocations: 8.062 kB / 363.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.7e-05/0.1111, allocations: 15.83 kB / 363.2 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.1111, allocations: 4 kB / 363.2 MB, free: 8.121 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.211e-05/0.1112, allocations: 126.8 kB / 363.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.944e-05/0.1112, allocations: 7.906 kB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.93e-05/0.1113, allocations: 16.36 kB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1113, allocations: 4 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.1113, allocations: 0 / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1113, allocations: 4 kB / 363.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.1115, allocations: 197.6 kB / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1115, allocations: 0 / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.1117, allocations: 23.92 kB / 363.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1117, allocations: 4 kB / 363.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.1117, allocations: 4 kB / 363.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1117, allocations: 0 / 363.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1117, allocations: 0 / 363.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.1121, allocations: 239.3 kB / 363.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.387e-05/0.1122, allocations: 85.02 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.1122, allocations: 0 / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.071e-05/0.1123, allocations: 8.031 kB / 363.9 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.1123, allocations: 11.98 kB / 363.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.1123, allocations: 7.938 kB / 363.9 MB, free: 7.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.467e-05/0.1124, allocations: 97.94 kB / 364 MB, free: 7.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1124, allocations: 3.938 kB / 364 MB, free: 7.207 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.1127, allocations: 27.84 kB / 364 MB, free: 7.18 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.0006294/0.1133, allocations: 0.7592 MB / 364.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.1136, allocations: 83.86 kB / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1136, allocations: 288 / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.1137, allocations: 35.98 kB / 364.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.1141, allocations: 24.17 kB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.1162, allocations: 1.732 MB / 366.7 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.1165, allocations: 0.6963 MB / 367.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.252e-05/0.1165, allocations: 8.422 kB / 367.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.195e-05/0.1166, allocations: 31.36 kB / 367.4 MB, free: 3.652 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1166, allocations: 4 kB / 367.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4072/0.5239, allocations: 2.337 MB / 369.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.175/8.699, allocations: 10.81 kB / 369.8 MB, free: 1.398 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