Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.00134/0.00134, allocations: 120 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.001923/0.001923, allocations: 218.3 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.62/1.62, allocations: 230.4 MB / 254.7 MB, free: 15.2 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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 63.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1558, allocations: 53.38 MB / 427 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004228/0.16, allocations: 2.047 MB / 429.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1615, allocations: 0.6115 MB / 429.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.1617, allocations: 7.938 kB / 429.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.1619, allocations: 15.8 kB / 429.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002874/0.1622, allocations: 39.72 kB / 429.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.1626, allocations: 71.78 kB / 429.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.1629, allocations: 127.6 kB / 430 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.163, allocations: 33.88 kB / 430 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1632, allocations: 67.64 kB / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.1633, allocations: 59.7 kB / 430.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.363e-05/0.1633, allocations: 12 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.512e-05/0.1633, allocations: 12 kB / 430.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.915e-05/0.1634, allocations: 23.92 kB / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.154e-05/0.1635, allocations: 71.59 kB / 430.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.1638, allocations: 147.2 kB / 430.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.1638, allocations: 4 kB / 430.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1638, allocations: 0 / 430.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1638, allocations: 0 / 430.4 MB, free: 1.281 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0008358/0.1647, allocations: 466.6 kB / 430.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.464e-05/0.1647, allocations: 8.031 kB / 430.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.126e-05/0.1647, allocations: 12.17 kB / 430.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.26e-05/0.1648, allocations: 46.73 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.069e-05/0.1649, allocations: 24.8 kB / 430.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.1653, allocations: 216.1 kB / 431.1 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.1653, allocations: 8.375 kB / 431.1 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.1653, allocations: 12.38 kB / 431.2 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.1659, allocations: 259.3 kB / 431.4 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.166, allocations: 0 / 431.4 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.166, allocations: 4 kB / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.166, allocations: 4 kB / 431.4 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.1663, allocations: 87.88 kB / 431.5 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008971/0.1672, allocations: 0.5999 MB / 432.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004037/0.1676, allocations: 139.9 kB / 432.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.1677, allocations: 70.64 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.1678, allocations: 3.984 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.1678, allocations: 42.56 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 6.221e-06/0.1678, allocations: 3.984 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006342/0.1685, allocations: 189.3 kB / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.1686, allocations: 119.1 kB / 432.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.1688, allocations: 150.2 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.1688, allocations: 29.64 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1689, allocations: 128.6 kB / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.1689, allocations: 23.8 kB / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-05/0.169, allocations: 37.7 kB / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1691, allocations: 318.8 kB / 433.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1693, allocations: 39.97 kB / 433.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.1695, allocations: 136.1 kB / 433.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003548/0.1698, allocations: 197.4 kB / 433.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.1698, allocations: 4 kB / 433.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004239/0.1703, allocations: 193.2 kB / 433.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1703, allocations: 4 kB / 433.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.1703, allocations: 4.469 kB / 433.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1703, allocations: 8 kB / 433.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.1705, allocations: 47.91 kB / 433.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1705, allocations: 7.938 kB / 434 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1706, allocations: 23.88 kB / 434 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.1706, allocations: 8 kB / 434 MB, free: 13.26 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001498/0.1708, allocations: 133.8 kB / 434.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.171, allocations: 97.52 kB / 434.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.1711, allocations: 20.72 kB / 434.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1711, allocations: 0 / 434.2 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1711, allocations: 4 kB / 434.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1711, allocations: 0 / 434.2 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.1714, allocations: 221.5 kB / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1714, allocations: 0 / 434.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.1716, allocations: 35.92 kB / 434.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.276e-06/0.1716, allocations: 7.984 kB / 434.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1716, allocations: 4 kB / 434.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1716, allocations: 0 / 434.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.267e-06/0.1716, allocations: 4 kB / 434.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.1722, allocations: 389 kB / 434.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.1723, allocations: 105 kB / 435 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.1723, allocations: 0 / 435 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1725, allocations: 16.05 kB / 435 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.1725, allocations: 8.031 kB / 435 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-06/0.1725, allocations: 7.938 kB / 435 MB, free: 12.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.1726, allocations: 120.1 kB / 435.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1726, allocations: 0 / 435.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003356/0.173, allocations: 31.94 kB / 435.2 MB, free: 11.98 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 (15): * Single equations (assignments): 15 * 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.0008998/0.1739, allocations: 0.921 MB / 436.1 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003831/0.1742, allocations: 130 kB / 436.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1743, allocations: 0 / 436.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.1744, allocations: 27.92 kB / 436.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.1749, allocations: 52.5 kB / 436.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/0.178, allocations: 2.118 MB / 438.4 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.1784, allocations: 0.7162 MB / 439.1 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.509e-05/0.1785, allocations: 17.42 kB / 439.1 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.938e-05/0.1786, allocations: 39.42 kB / 439.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of SimCode: time 1.233e-06/0.1786, allocations: 0 / 439.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.2053, allocations: 3.046 MB / 442.2 MB, free: 4.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.751/8.956, allocations: 3.781 kB / 442.2 MB, free: 4.879 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.k,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.factor,periodicClock.resolution,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.266582357988227]