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.001392/0.001392, allocations: 109 kB / 17.06 MB, free: 5.961 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.001422/0.001422, allocations: 200 kB / 18 MB, free: 5.051 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.4/1.4, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 47.94 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3064, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003241/0.3097, allocations: 1.86 MB / 402.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008028/0.3106, allocations: 458.8 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.837e-05/0.3107, allocations: 4 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.3108, allocations: 15.86 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.319e-05/0.3109, allocations: 15.8 kB / 402.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001634/0.311, allocations: 31.95 kB / 402.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.3112, allocations: 107.6 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3114, allocations: 41.38 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.84e-05/0.3115, allocations: 39.8 kB / 402.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.3116, allocations: 43.78 kB / 402.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.3116, allocations: 8 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.262e-05/0.3116, allocations: 8 kB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.502e-05/0.3117, allocations: 23.92 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.283e-05/0.3118, allocations: 47.72 kB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.312, allocations: 102.6 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.312, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.312, allocations: 0 / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.312, allocations: 0 / 403 MB, free: 6.035 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.000636/0.3126, allocations: 415.1 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3127, allocations: 12.03 kB / 403.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.965e-05/0.3127, allocations: 42.69 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.3128, allocations: 16.84 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.313, allocations: 188.2 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.3131, allocations: 12.55 kB / 403.7 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.3131, allocations: 12.12 kB / 403.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.3134, allocations: 124.8 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3134, allocations: 0 / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.3134, allocations: 8 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3135, allocations: 0 / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.3137, allocations: 71.94 kB / 403.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.3144, allocations: 0.5247 MB / 404.4 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.3147, allocations: 82.53 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.3148, allocations: 32.84 kB / 404.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.3148, allocations: 8 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.3148, allocations: 30.56 kB / 404.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3148, allocations: 0 / 404.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004272/0.3153, allocations: 125.7 kB / 404.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.3153, allocations: 51.41 kB / 404.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.3155, allocations: 133.1 kB / 404.9 MB, free: 3.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.3155, allocations: 29.7 kB / 404.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.735e-05/0.3156, allocations: 111.9 kB / 405 MB, free: 3.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.3156, allocations: 31.89 kB / 405 MB, free: 3.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.104e-05/0.3157, allocations: 25.72 kB / 405.1 MB, free: 3.746 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3158, allocations: 326.8 kB / 405.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.316, allocations: 31.97 kB / 405.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.3161, allocations: 76.27 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.3164, allocations: 104.2 kB / 405.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3164, allocations: 0 / 405.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003218/0.3167, allocations: 141.3 kB / 405.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3167, allocations: 4 kB / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.3167, allocations: 0 / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3168, allocations: 4 kB / 405.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.3169, allocations: 39.97 kB / 405.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.317, allocations: 4.125 kB / 405.8 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.07e-05/0.317, allocations: 11.95 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3171, allocations: 4 kB / 405.8 MB, free: 2.969 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.0001028/0.3172, allocations: 133.6 kB / 405.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.3172, allocations: 7.953 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.3172, allocations: 8.375 kB / 405.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.3173, allocations: 4 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.3173, allocations: 0 / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3173, allocations: 4 kB / 405.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.3175, allocations: 197.6 kB / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3175, allocations: 0 / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.3177, allocations: 19.98 kB / 406.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3177, allocations: 0 / 406.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3177, allocations: 0 / 406.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3177, allocations: 0 / 406.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3177, allocations: 4.312 kB / 406.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004349/0.3181, allocations: 247.3 kB / 406.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.3182, allocations: 85.09 kB / 406.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.3182, allocations: 4 kB / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-05/0.3183, allocations: 0 / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.477e-05/0.3184, allocations: 12.06 kB / 406.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3184, allocations: 11.94 kB / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.203e-05/0.3185, allocations: 91.27 kB / 406.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3185, allocations: 8 kB / 406.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002498/0.3187, allocations: 27.89 kB / 406.6 MB, free: 2.023 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.0008062/0.3195, allocations: 0.763 MB / 407.4 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.3199, allocations: 83.98 kB / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3199, allocations: 192 / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.32, allocations: 31.97 kB / 407.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.3204, allocations: 26.97 kB / 407.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.3227, allocations: 1.728 MB / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.323, allocations: 0.7039 MB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.542e-05/0.3231, allocations: 12.42 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.644e-05/0.3232, allocations: 31.42 kB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3232, allocations: 3.938 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.3581, allocations: 2.393 MB / 412.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.474/8.832, allocations: 8.578 kB / 412.4 MB, free: 12.2 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