Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001648/0.001648, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.701/1.701, allocations: 230.4 MB / 254.7 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] 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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 63.89 kB / 373.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1464, allocations: 53.38 MB / 427 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005512/0.152, allocations: 2.161 MB / 429.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.1538, allocations: 0.6861 MB / 429.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004085/0.1542, allocations: 7.938 kB / 429.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005613/0.1547, allocations: 47.56 kB / 429.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003793/0.1551, allocations: 51.62 kB / 430 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007353/0.1558, allocations: 127.8 kB / 430.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007772/0.1566, allocations: 335.2 kB / 430.4 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.1569, allocations: 52.38 kB / 430.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004608/0.1573, allocations: 151.5 kB / 430.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.1577, allocations: 151.4 kB / 430.8 MB, free: 0.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.508e-05/0.1578, allocations: 32 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.1579, allocations: 28 kB / 430.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.158, allocations: 99.7 kB / 430.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.1582, allocations: 123.4 kB / 431.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.1587, allocations: 286.8 kB / 431.4 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1587, allocations: 3.938 kB / 431.4 MB, free: 320 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1587, allocations: 0 / 431.4 MB, free: 320 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.1587, allocations: 0 / 431.4 MB, free: 320 kB / 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.001535/0.1603, allocations: 0.5802 MB / 431.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.1603, allocations: 12.03 kB / 431.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.155e-05/0.1603, allocations: 8.172 kB / 432 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.827e-05/0.1604, allocations: 62.72 kB / 432 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.1605, allocations: 32.8 kB / 432 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.161, allocations: 256.5 kB / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.1613, allocations: 133.8 kB / 432.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.229e-05/0.1613, allocations: 24 kB / 432.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009286/0.1623, allocations: 367.5 kB / 432.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.1623, allocations: 11.95 kB / 432.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/0.1623, allocations: 8 kB / 432.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.1624, allocations: 8 kB / 432.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.1638, allocations: 497.8 kB / 433.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1658, allocations: 1.003 MB / 434.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.1671, allocations: 331 kB / 434.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.1677, allocations: 161.2 kB / 434.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.1677, allocations: 4.234 kB / 434.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1677, allocations: 34.8 kB / 434.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.404e-06/0.1677, allocations: 0 / 434.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.02879/0.1965, allocations: 5.801 MB / 440.6 MB, free: 6.711 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/0.1966, allocations: 59.84 kB / 440.7 MB, free: 6.641 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/0.1971, allocations: 198.3 kB / 440.9 MB, free: 6.438 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.811e-05/0.1971, allocations: 33.7 kB / 440.9 MB, free: 6.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.1974, allocations: 152.9 kB / 441.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.1977, allocations: 186.4 kB / 441.3 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003282/0.198, allocations: 94.2 kB / 441.4 MB, free: 5.965 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003049/0.1983, allocations: 334.8 kB / 441.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.1999, allocations: 468.8 kB / 442.1 MB, free: 5.172 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.2014, allocations: 0.5177 MB / 442.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002586/0.204, allocations: 0.8071 MB / 443.5 MB, free: 3.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.204, allocations: 0 / 443.5 MB, free: 3.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003139/0.2072, allocations: 0.9905 MB / 444.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/0.2072, allocations: 4 kB / 444.5 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.2072, allocations: 4 kB / 444.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.973e-05/0.2073, allocations: 0 / 444.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.2084, allocations: 171.9 kB / 444.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-05/0.2084, allocations: 7.938 kB / 444.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007917/0.2092, allocations: 91.81 kB / 444.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-05/0.2093, allocations: 16 kB / 444.7 MB, free: 2.531 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.0003696/0.2096, allocations: 153.8 kB / 444.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.2098, allocations: 35.73 kB / 444.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.21, allocations: 47.31 kB / 445 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.21, allocations: 8 kB / 445 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.21, allocations: 0 / 445 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/0.21, allocations: 3.984 kB / 445 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004884/0.2149, allocations: 1.876 MB / 446.9 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.953e-05/0.215, allocations: 12.14 kB / 446.9 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000722/0.2157, allocations: 151.7 kB / 447 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.171e-05/0.2157, allocations: 8 kB / 447 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/0.2157, allocations: 20 kB / 447.1 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.216e-05/0.2158, allocations: 19.92 kB / 447.1 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.779e-05/0.2158, allocations: 15.92 kB / 447.1 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2837/0.4995, allocations: 1.217 MB / 448.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.4998, allocations: 146.2 kB / 448.4 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.539e-05/0.4999, allocations: 18.53 kB / 448.5 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.5004, allocations: 75.05 kB / 448.5 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.5006, allocations: 86.5 kB / 448.6 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.5007, allocations: 26.09 kB / 448.6 MB, free: 24.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001686/0.5009, allocations: 147.8 kB / 448.8 MB, free: 24.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5009, allocations: 5.031 kB / 448.8 MB, free: 24.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.5014, allocations: 96.12 kB / 448.9 MB, free: 24.31 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.003105/0.5045, allocations: 1.781 MB / 450.7 MB, free: 23.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002453/0.5069, allocations: 0.777 MB / 451.4 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.5069, allocations: 1.25 kB / 451.4 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.5079, allocations: 317 kB / 451.8 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.5087, allocations: 61.39 kB / 451.8 MB, free: 23.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.5208, allocations: 5.241 MB / 457.1 MB, free: 20.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.5213, allocations: 0.7799 MB / 457.8 MB, free: 19.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005124/0.5218, allocations: 82.47 kB / 457.9 MB, free: 19.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.5221, allocations: 94.59 kB / 458 MB, free: 19.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.973e-06/0.5221, allocations: 0 / 458 MB, free: 19.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.5543, allocations: 8.411 MB / 466.4 MB, free: 17.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.111/9.666, allocations: 15.36 kB / 466.4 MB, free: 17.73 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 12.727647955995053]