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.001668/0.001668, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002474/0.002474, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001313, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2919, allocations: 50.54 MB / 408.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003228/0.2952, allocations: 1.875 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000811/0.296, allocations: 490.8 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.421e-05/0.2961, allocations: 0 / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.2963, allocations: 19.8 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.049e-05/0.2964, allocations: 23.78 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001629/0.2965, allocations: 31.97 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.2967, allocations: 99.58 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.2968, allocations: 37.38 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.333e-05/0.2969, allocations: 39.86 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.033e-05/0.297, allocations: 51.77 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.2971, allocations: 8 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.789e-05/0.2971, allocations: 8 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.2971, allocations: 15.94 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.2972, allocations: 59.66 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.2973, allocations: 101.3 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2973, allocations: 0 / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2974, allocations: 0 / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.2974, allocations: 3.938 kB / 411.6 MB, free: 14.72 MB / 334.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.0005257/0.2979, allocations: 407.3 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.2979, allocations: 12.03 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.298, allocations: 38.73 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.298, allocations: 12.84 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.2983, allocations: 200.1 kB / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.2983, allocations: 4.562 kB / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.2983, allocations: 16.12 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00027/0.2986, allocations: 115.4 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.2986, allocations: 3.984 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.2986, allocations: 8 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2987, allocations: 0 / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.2989, allocations: 71.88 kB / 412.4 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006956/0.2996, allocations: 0.5323 MB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.2998, allocations: 82.55 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.2999, allocations: 36.83 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.3, allocations: 7.938 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.3, allocations: 34.56 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.3, allocations: 0 / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004132/0.3004, allocations: 113.5 kB / 413.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.3005, allocations: 59.39 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3006, allocations: 121.8 kB / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.3006, allocations: 25.7 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.168e-05/0.3007, allocations: 115.9 kB / 413.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.3007, allocations: 31.69 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.3008, allocations: 25.72 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.3009, allocations: 330.7 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.301, allocations: 31.97 kB / 414 MB, free: 12.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.3011, allocations: 68.27 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.3013, allocations: 104.2 kB / 414.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3014, allocations: 0 / 414.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000294/0.3017, allocations: 137.4 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3017, allocations: 7.125 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.3017, allocations: 3.984 kB / 414.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3017, allocations: 4 kB / 414.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3019, allocations: 31.92 kB / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.3019, allocations: 0 / 414.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.232e-05/0.302, allocations: 24.02 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.302, allocations: 4 kB / 414.3 MB, free: 11.66 MB / 334.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 8.833e-05/0.3021, allocations: 129.7 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.3021, allocations: 7.906 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.3022, allocations: 8.375 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.3022, allocations: 4 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3022, allocations: 0 / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3022, allocations: 3.984 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.3024, allocations: 197.5 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3024, allocations: 4 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.3025, allocations: 19.98 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3026, allocations: 0 / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.3026, allocations: 3.984 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.3026, allocations: 8 kB / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3026, allocations: 0 / 414.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003851/0.303, allocations: 239.6 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.303, allocations: 81.02 kB / 415 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.303, allocations: 8 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3032, allocations: 8.031 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.3032, allocations: 3.938 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.3032, allocations: 4 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.565e-05/0.3033, allocations: 102.5 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3033, allocations: 0 / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002423/0.3035, allocations: 19.94 kB / 415.2 MB, free: 10.73 MB / 334.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.0005875/0.3041, allocations: 0.7711 MB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.3044, allocations: 91.91 kB / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3044, allocations: 0 / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.3045, allocations: 31.97 kB / 416.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.3048, allocations: 23.97 kB / 416.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.3069, allocations: 1.731 MB / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.3071, allocations: 0.704 MB / 418.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.228e-05/0.3072, allocations: 4.438 kB / 418.5 MB, free: 7.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.648e-05/0.3073, allocations: 35.42 kB / 418.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3073, allocations: 0 / 418.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.3259, allocations: 2.413 MB / 421 MB, free: 4.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.176/8.501, allocations: 3.984 kB / 421 MB, free: 4.879 MB / 334.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