Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001821/0.001821, allocations: 120.1 kB / 18.5 MB, free: 4.535 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.002029/0.002029, allocations: 222.3 kB / 21.46 MB, free: 1.582 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.74/1.74, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 63.91 kB / 373.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1698, allocations: 53.38 MB / 427 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004452/0.1743, allocations: 2.019 MB / 429.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1756, allocations: 0.5375 MB / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1757, allocations: 0 / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001624/0.1759, allocations: 19.8 kB / 429.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.382e-05/0.1759, allocations: 27.73 kB / 429.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.1763, allocations: 63.86 kB / 429.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.1765, allocations: 123.6 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.1767, allocations: 37.42 kB / 429.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.893e-05/0.1768, allocations: 47.84 kB / 429.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1769, allocations: 59.7 kB / 430 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.177, allocations: 8 kB / 430 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.332e-05/0.177, allocations: 15.94 kB / 430 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.345e-05/0.177, allocations: 23.92 kB / 430 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.103e-05/0.1771, allocations: 63.67 kB / 430.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.1774, allocations: 123.4 kB / 430.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1774, allocations: 0 / 430.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1774, allocations: 3.938 kB / 430.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1774, allocations: 4 kB / 430.2 MB, free: 1.449 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007625/0.1782, allocations: 426.9 kB / 430.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1782, allocations: 8.031 kB / 430.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.876e-05/0.1782, allocations: 8.188 kB / 430.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.1783, allocations: 42.75 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.1783, allocations: 16.84 kB / 430.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.1787, allocations: 206.7 kB / 430.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.1787, allocations: 8.375 kB / 430.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/0.1788, allocations: 16.33 kB / 430.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005592/0.1794, allocations: 238.5 kB / 431.2 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.1794, allocations: 0 / 431.2 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1794, allocations: 8 kB / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.1794, allocations: 3.938 kB / 431.2 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002807/0.1797, allocations: 91.92 kB / 431.3 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.1805, allocations: 0.5882 MB / 431.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.1808, allocations: 143.9 kB / 432 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.181, allocations: 74.56 kB / 432.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.181, allocations: 4 kB / 432.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.1811, allocations: 38.56 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1811, allocations: 3.938 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.000581/0.1816, allocations: 173.4 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.1817, allocations: 114.9 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.1819, allocations: 131.7 kB / 432.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.1819, allocations: 25.7 kB / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.845e-05/0.182, allocations: 119.8 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.182, allocations: 28.16 kB / 432.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.001e-05/0.1821, allocations: 33.7 kB / 432.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1823, allocations: 318.8 kB / 433 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.1824, allocations: 35.97 kB / 433.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.1826, allocations: 136.7 kB / 433.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.1829, allocations: 176.7 kB / 433.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1829, allocations: 0 / 433.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003801/0.1833, allocations: 189.4 kB / 433.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1833, allocations: 11.94 kB / 433.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.1834, allocations: 8.469 kB / 433.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.1834, allocations: 11.98 kB / 433.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.1836, allocations: 43.92 kB / 433.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1836, allocations: 4 kB / 433.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.1837, allocations: 27.81 kB / 433.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.1837, allocations: 12 kB / 433.7 MB, free: 13.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001387/0.1838, allocations: 125.8 kB / 433.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.184, allocations: 85.52 kB / 433.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.184, allocations: 20.7 kB / 433.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.184, allocations: 0 / 433.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1841, allocations: 4 kB / 433.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1841, allocations: 4 kB / 433.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003047/0.1844, allocations: 209.5 kB / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1844, allocations: 0 / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.1846, allocations: 35.92 kB / 434.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.1846, allocations: 3.938 kB / 434.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.1846, allocations: 4 kB / 434.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1846, allocations: 0 / 434.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1846, allocations: 7.984 kB / 434.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007215/0.1853, allocations: 371.5 kB / 434.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.1854, allocations: 92.98 kB / 434.6 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.1854, allocations: 7.875 kB / 434.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.1856, allocations: 16.05 kB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.1856, allocations: 4 kB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1856, allocations: 4 kB / 434.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.735e-05/0.1857, allocations: 104.7 kB / 434.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1857, allocations: 0 / 434.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000344/0.1861, allocations: 24 kB / 434.8 MB, free: 12.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.001262/0.1873, allocations: 0.9142 MB / 435.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.1878, allocations: 120 kB / 435.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.1878, allocations: 0 / 435.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.1879, allocations: 23.98 kB / 435.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006623/0.1886, allocations: 46.77 kB / 435.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/0.192, allocations: 2.03 MB / 437.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005603/0.1926, allocations: 0.7162 MB / 438.6 MB, free: 8.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.947e-05/0.1927, allocations: 4.656 kB / 438.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1928, allocations: 39.42 kB / 438.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1928, allocations: 0 / 438.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.2191, allocations: 2.815 MB / 441.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.78/8.999, allocations: 17.45 kB / 441.5 MB, free: 5.625 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.Td,PI.kd,PI.u,PI.x,PI.y,der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,hold1.u,hold1.y,hold1.y_start,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,periodicClock.period,periodicClock.useSolver,previous(PI.x),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sample1.u,sample1.y,sample2.u,sample2.y,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.296585539996158]