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.002559/0.002559, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.002884/0.002884, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.846/2.846, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002036, allocations: 43.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8176/0.8197, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.008704/0.8285, allocations: 1.864 MB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001595/0.8301, allocations: 454.8 kB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.8304, allocations: 3.938 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.8307, allocations: 19.8 kB / 402.5 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.831, allocations: 23.78 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.8313, allocations: 31.95 kB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004078/0.8317, allocations: 107.6 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.832, allocations: 33.39 kB / 402.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.8322, allocations: 39.8 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.8324, allocations: 51.75 kB / 402.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4e-05/0.8325, allocations: 8 kB / 402.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.339e-05/0.8325, allocations: 12 kB / 402.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.8326, allocations: 19.94 kB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.8327, allocations: 47.73 kB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.833, allocations: 105.3 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.8331, allocations: 0 / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.8331, allocations: 0 / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.8331, allocations: 0 / 403 MB, free: 6.004 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.0009504/0.8341, allocations: 403.3 kB / 403.4 MB, free: 5.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.791e-05/0.8341, allocations: 16.03 kB / 403.4 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.448e-05/0.8342, allocations: 38.73 kB / 403.5 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.752e-05/0.8343, allocations: 16.84 kB / 403.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005269/0.8349, allocations: 196.1 kB / 403.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.8349, allocations: 8.562 kB / 403.7 MB, free: 5.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.835, allocations: 12.12 kB / 403.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/0.8355, allocations: 113 kB / 403.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.8355, allocations: 7.938 kB / 403.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.8356, allocations: 8 kB / 403.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.8356, allocations: 0 / 403.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004112/0.836, allocations: 75.89 kB / 403.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005631/0.8416, allocations: 0.5284 MB / 404.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.8421, allocations: 78.55 kB / 404.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.8423, allocations: 36.83 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.8424, allocations: 4 kB / 404.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.8424, allocations: 30.56 kB / 404.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 4.168e-06/0.8425, allocations: 4 kB / 404.6 MB, free: 4.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0007817/0.8433, allocations: 117.8 kB / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.386e-05/0.8434, allocations: 59.41 kB / 404.7 MB, free: 4.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.8436, allocations: 129.6 kB / 404.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.8437, allocations: 25.7 kB / 404.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.8438, allocations: 115.9 kB / 405 MB, free: 3.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.8439, allocations: 27.56 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.844, allocations: 29.7 kB / 405.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.8443, allocations: 322.8 kB / 405.4 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000193/0.8445, allocations: 35.91 kB / 405.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.8448, allocations: 66.52 kB / 405.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.8452, allocations: 108.2 kB / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.8452, allocations: 0 / 405.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005471/0.8458, allocations: 137.4 kB / 405.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.8459, allocations: 4 kB / 405.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.8459, allocations: 0 / 405.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.322e-05/0.8459, allocations: 4 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.8462, allocations: 31.92 kB / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.8463, allocations: 0 / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.8465, allocations: 19.89 kB / 405.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.8465, allocations: 4.125 kB / 405.8 MB, free: 2.953 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.0002898/0.8468, allocations: 133.7 kB / 405.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.512e-05/0.8469, allocations: 4 kB / 405.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.8469, allocations: 8.375 kB / 405.9 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.433e-06/0.8469, allocations: 4 kB / 405.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.847, allocations: 3.984 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.847, allocations: 0 / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.8474, allocations: 197.5 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.8474, allocations: 0 / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.8476, allocations: 27.98 kB / 406.1 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.8477, allocations: 3.984 kB / 406.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.8477, allocations: 0 / 406.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.8477, allocations: 4 kB / 406.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.8477, allocations: 0 / 406.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006209/0.8483, allocations: 239.6 kB / 406.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.249e-05/0.8484, allocations: 89.02 kB / 406.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.201e-05/0.8485, allocations: 4 kB / 406.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.8486, allocations: 8.125 kB / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.517e-05/0.8487, allocations: 3.984 kB / 406.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.8487, allocations: 7.938 kB / 406.5 MB, free: 2.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002012/0.8489, allocations: 106.5 kB / 406.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.849, allocations: 0 / 406.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003887/0.8494, allocations: 23.94 kB / 406.6 MB, free: 2.012 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.00108/0.8504, allocations: 0.7669 MB / 407.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.8509, allocations: 88.11 kB / 407.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.851, allocations: 0 / 407.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.8511, allocations: 31.97 kB / 407.5 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.8516, allocations: 23.98 kB / 407.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.8553, allocations: 1.732 MB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006236/0.856, allocations: 0.7039 MB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.963e-05/0.8561, allocations: 4.438 kB / 410 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.8562, allocations: 31.42 kB / 410 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8562, allocations: 7.938 kB / 410 MB, free: 14.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1247/0.9809, allocations: 2.416 MB / 412.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.33/20.31, allocations: 12.45 kB / 412.4 MB, free: 12.15 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