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.001214/0.001214, allocations: 106.8 kB / 16.92 MB, free: 5.766 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.001239/0.001239, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.5/1.5, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 47.05 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1308, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.004412/0.1352, allocations: 1.856 MB / 352 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1365, allocations: 458.8 kB / 352.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1367, allocations: 0 / 352.5 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.1369, allocations: 7.875 kB / 352.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.1371, allocations: 27.72 kB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002331/0.1373, allocations: 23.97 kB / 352.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002955/0.1376, allocations: 107.6 kB / 352.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002063/0.1378, allocations: 37.39 kB / 352.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.138, allocations: 43.84 kB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.1381, allocations: 43.78 kB / 352.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.78e-05/0.1381, allocations: 8 kB / 352.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.605e-05/0.1382, allocations: 8 kB / 352.8 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.1382, allocations: 19.92 kB / 352.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.735e-05/0.1383, allocations: 51.73 kB / 352.8 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.1386, allocations: 104 kB / 352.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.274e-05/0.1386, allocations: 3.938 kB / 352.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.1386, allocations: 3.938 kB / 352.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.1386, allocations: 0 / 352.9 MB, free: 1.512 MB / 286.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.0008348/0.1395, allocations: 403.3 kB / 353.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/0.1395, allocations: 8.031 kB / 353.3 MB, free: 1.062 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.97e-05/0.1396, allocations: 38.75 kB / 353.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.1397, allocations: 12.84 kB / 353.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.14, allocations: 204 kB / 353.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.1401, allocations: 8.562 kB / 353.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.1401, allocations: 12.12 kB / 353.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.1405, allocations: 122.7 kB / 353.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.1405, allocations: 0 / 353.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.1405, allocations: 4 kB / 353.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1405, allocations: 4 kB / 353.7 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002739/0.1408, allocations: 79.83 kB / 353.8 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009649/0.1418, allocations: 0.5168 MB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.142, allocations: 78.61 kB / 354.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.1422, allocations: 40.77 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.1422, allocations: 4 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1422, allocations: 34.56 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 2.044e-06/0.1423, allocations: 4 kB / 354.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004799/0.1427, allocations: 125.6 kB / 354.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.1428, allocations: 51.41 kB / 354.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.143, allocations: 129.8 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.143, allocations: 25.7 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.1431, allocations: 123.8 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.1431, allocations: 19.66 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.419e-05/0.1432, allocations: 33.7 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1434, allocations: 326.8 kB / 355.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1435, allocations: 27.98 kB / 355.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1437, allocations: 64.27 kB / 355.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.144, allocations: 112.1 kB / 355.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.144, allocations: 3.938 kB / 355.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003353/0.1443, allocations: 141.4 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.1444, allocations: 6.812 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1444, allocations: 0 / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.1444, allocations: 4 kB / 355.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.1446, allocations: 27.98 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.1446, allocations: 4.25 kB / 355.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.734e-05/0.1447, allocations: 23.83 kB / 355.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1447, allocations: 4.125 kB / 355.7 MB, free: 14.45 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.0001257/0.1448, allocations: 121.8 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.952e-05/0.1449, allocations: 7.906 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.065e-05/0.1449, allocations: 12.45 kB / 355.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.145, allocations: 7.938 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.145, allocations: 0 / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.145, allocations: 0 / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.1452, allocations: 201.5 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1452, allocations: 0 / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1454, allocations: 27.98 kB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1454, allocations: 0 / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1454, allocations: 0 / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1454, allocations: 0 / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.1454, allocations: 11.92 kB / 356.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005014/0.1459, allocations: 227.3 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.553e-05/0.146, allocations: 85.02 kB / 356.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.105e-05/0.1461, allocations: 4 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.282e-05/0.1462, allocations: 8.031 kB / 356.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.1462, allocations: 7.984 kB / 356.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-06/0.1462, allocations: 4 kB / 356.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.833e-05/0.1463, allocations: 102.3 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1463, allocations: 0 / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002632/0.1466, allocations: 23.91 kB / 356.6 MB, free: 13.52 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.0008646/0.1475, allocations: 0.7708 MB / 357.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.1478, allocations: 84.11 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1478, allocations: 4.062 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.1479, allocations: 31.92 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.1485, allocations: 24.11 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.1515, allocations: 1.735 MB / 359.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.152, allocations: 0.6963 MB / 359.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.032e-05/0.152, allocations: 16.41 kB / 359.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.761e-05/0.1521, allocations: 31.42 kB / 359.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1521, allocations: 7.938 kB / 360 MB, free: 9.969 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1833, allocations: 2.321 MB / 362.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.005/9.188, allocations: 15.8 kB / 362.3 MB, free: 7.727 MB / 302.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