Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 225.6 MB / 249.8 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.92 kB / 366.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1256, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004041/0.1297, allocations: 2.147 MB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.131, allocations: 0.6626 MB / 421.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.1312, allocations: 7.938 kB / 421.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.1315, allocations: 43.64 kB / 421.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.1317, allocations: 55.61 kB / 421.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.1321, allocations: 127.8 kB / 421.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.1325, allocations: 339.2 kB / 421.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.1327, allocations: 48.36 kB / 421.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002452/0.1329, allocations: 151.5 kB / 422 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.1332, allocations: 151.4 kB / 422.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.122e-05/0.1332, allocations: 32 kB / 422.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.972e-05/0.1333, allocations: 28 kB / 422.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.1334, allocations: 83.73 kB / 422.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1336, allocations: 127.4 kB / 422.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.134, allocations: 290.8 kB / 422.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.134, allocations: 0 / 422.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.134, allocations: 0 / 422.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.134, allocations: 0 / 422.7 MB, free: 8.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001298/0.1353, allocations: 0.5804 MB / 423.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1353, allocations: 12.03 kB / 423.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.93e-05/0.1353, allocations: 8.125 kB / 423.3 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.1354, allocations: 58.73 kB / 423.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.289e-05/0.1355, allocations: 36.75 kB / 423.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.1359, allocations: 248.5 kB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.1362, allocations: 141.8 kB / 423.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.707e-05/0.1362, allocations: 27.94 kB / 423.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009455/0.1372, allocations: 367.6 kB / 424.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.1372, allocations: 0 / 424.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.1372, allocations: 8 kB / 424.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.1372, allocations: 12 kB / 424.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1386, allocations: 497.8 kB / 424.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.1405, allocations: 1.004 MB / 425.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.1418, allocations: 319.8 kB / 426 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005202/0.1423, allocations: 165.2 kB / 426.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.1423, allocations: 8.172 kB / 426.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.1424, allocations: 34.8 kB / 426.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.144e-06/0.1424, allocations: 0 / 426.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02782/0.1702, allocations: 5.802 MB / 432 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.1703, allocations: 63.77 kB / 432.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.1705, allocations: 214.5 kB / 432.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.793e-05/0.1706, allocations: 37.7 kB / 432.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.1707, allocations: 157 kB / 432.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.1709, allocations: 186.4 kB / 432.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1712, allocations: 82.27 kB / 432.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1713, allocations: 342.8 kB / 433.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.1727, allocations: 460.8 kB / 433.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.1741, allocations: 0.5177 MB / 434 MB, free: 12.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.1766, allocations: 0.8032 MB / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1766, allocations: 4 kB / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002972/0.1795, allocations: 0.9945 MB / 435.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.1796, allocations: 4 kB / 435.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1796, allocations: 4 kB / 435.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.1796, allocations: 4 kB / 435.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.1806, allocations: 171.8 kB / 436 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1806, allocations: 4 kB / 436 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007197/0.1813, allocations: 83.89 kB / 436.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-05/0.1814, allocations: 16 kB / 436.1 MB, free: 10.53 MB / 366.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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002588/0.1816, allocations: 154.4 kB / 436.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.452e-05/0.1817, allocations: 35.75 kB / 436.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.1819, allocations: 51.3 kB / 436.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.1819, allocations: 11.94 kB / 436.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.1819, allocations: 0 / 436.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1819, allocations: 0 / 436.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.1863, allocations: 1.874 MB / 438.2 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001516/0.1865, allocations: 8.938 kB / 438.2 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007164/0.1872, allocations: 151.7 kB / 438.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.534e-05/0.1872, allocations: 8 kB / 438.4 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-05/0.1873, allocations: 31.92 kB / 438.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/0.1873, allocations: 11.94 kB / 438.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.594e-05/0.1873, allocations: 19.94 kB / 438.5 MB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.1908, allocations: 1.221 MB / 439.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003315/0.1911, allocations: 148.9 kB / 439.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.1912, allocations: 20 kB / 439.9 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005522/0.1917, allocations: 67.92 kB / 439.9 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.192, allocations: 87.66 kB / 440 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.192, allocations: 28 kB / 440 MB, free: 6.293 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.1923, allocations: 144.3 kB / 440.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1923, allocations: 0 / 440.2 MB, free: 6.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005901/0.1929, allocations: 100 kB / 440.3 MB, free: 6.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003871/0.1967, allocations: 1.785 MB / 442.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.1993, allocations: 0.7829 MB / 442.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.1994, allocations: 0 / 442.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.2004, allocations: 320.1 kB / 443.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007572/0.2012, allocations: 61.8 kB / 443.2 MB, free: 2.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2164/0.4176, allocations: 5.24 MB / 448.5 MB, free: 30 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.4178, allocations: 0.7824 MB / 449.2 MB, free: 29.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003918/0.4182, allocations: 79.44 kB / 449.3 MB, free: 29.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.4185, allocations: 94.34 kB / 449.4 MB, free: 29.29 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4185, allocations: 0 / 449.4 MB, free: 29.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03114/0.4496, allocations: 8.428 MB / 457.8 MB, free: 28.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.775/9.224, allocations: 10.28 kB / 457.8 MB, free: 28.55 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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,angle.flange.phi,angle.flange.tau,angle.phi,der(PI.x),der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,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,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 11.926029593974818]