Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001886/0.001886, 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.002266/0.002266, 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.746/1.746, 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002691/0.002691, allocations: 59.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1728, allocations: 53.39 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004466/0.1773, allocations: 2.077 MB / 429.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1784, allocations: 0.5337 MB / 429.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1785, allocations: 7.938 kB / 429.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.1786, allocations: 19.8 kB / 429.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.21e-05/0.1787, allocations: 27.72 kB / 429.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.179, allocations: 59.86 kB / 429.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000252/0.1793, allocations: 135.5 kB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.1794, allocations: 37.81 kB / 429.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.1795, allocations: 55.73 kB / 430 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.1797, allocations: 55.75 kB / 430 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.1797, allocations: 12 kB / 430.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.382e-05/0.1797, allocations: 12 kB / 430.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.145e-05/0.1797, allocations: 31.86 kB / 430.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.731e-05/0.1798, allocations: 55.67 kB / 430.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000318/0.1802, allocations: 135.4 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1802, allocations: 0 / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1802, allocations: 0 / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.1802, allocations: 0 / 430.3 MB, free: 1.363 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0007729/0.1809, allocations: 434.8 kB / 430.7 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.181, allocations: 12.03 kB / 430.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.527e-05/0.181, allocations: 4.188 kB / 430.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.1811, allocations: 46.73 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.1811, allocations: 16.84 kB / 430.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.1815, allocations: 212.1 kB / 431 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.1815, allocations: 4.375 kB / 431 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.1815, allocations: 16.38 kB / 431 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.1821, allocations: 238.4 kB / 431.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.1821, allocations: 0 / 431.2 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.172e-05/0.1821, allocations: 8 kB / 431.3 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1821, allocations: 4 kB / 431.3 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.1824, allocations: 83.88 kB / 431.3 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008357/0.1832, allocations: 0.5961 MB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/0.1836, allocations: 147.9 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.1838, allocations: 70.64 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.1838, allocations: 8 kB / 432.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.1838, allocations: 30.56 kB / 432.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.793e-06/0.1838, allocations: 0 / 432.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005813/0.1844, allocations: 185.5 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.1845, allocations: 126.9 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.1847, allocations: 130.2 kB / 432.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.1847, allocations: 29.7 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.134e-05/0.1848, allocations: 116.1 kB / 432.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.1848, allocations: 27.78 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.848e-05/0.1848, allocations: 37.7 kB / 432.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.185, allocations: 322.8 kB / 433.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1851, allocations: 35.98 kB / 433.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1853, allocations: 136.5 kB / 433.3 MB, free: 13.99 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.1858, allocations: 286.6 kB / 433.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1858, allocations: 0 / 433.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004047/0.1862, allocations: 201.3 kB / 433.8 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1862, allocations: 8 kB / 433.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1862, allocations: 4 kB / 433.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.1862, allocations: 4.234 kB / 433.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.1864, allocations: 39.92 kB / 433.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.688e-05/0.1864, allocations: 15.92 kB / 433.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1865, allocations: 20.3 kB / 433.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1865, allocations: 15.94 kB / 433.9 MB, free: 13.33 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001386/0.1867, allocations: 141.7 kB / 434 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.1868, allocations: 85.64 kB / 434.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.1869, allocations: 12.72 kB / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1869, allocations: 4 kB / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1869, allocations: 0 / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.1869, allocations: 3.984 kB / 434.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.1872, allocations: 217.4 kB / 434.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1872, allocations: 4 kB / 434.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.1875, allocations: 47.91 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.1875, allocations: 4 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.1875, allocations: 0 / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1875, allocations: 0 / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1875, allocations: 4 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.1882, allocations: 397.4 kB / 434.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.501e-05/0.1883, allocations: 85.06 kB / 434.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.1883, allocations: 8 kB / 434.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.1884, allocations: 7.984 kB / 434.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.1885, allocations: 4 kB / 434.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.1885, allocations: 11.98 kB / 434.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.249e-05/0.1886, allocations: 105.7 kB / 435 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1886, allocations: 4 kB / 435 MB, free: 12.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.1889, allocations: 31.89 kB / 435 MB, free: 12.07 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.0009977/0.1899, allocations: 0.9077 MB / 436 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004198/0.1904, allocations: 124.6 kB / 436.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1904, allocations: 0 / 436.1 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.1905, allocations: 31.98 kB / 436.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005757/0.191, allocations: 63.89 kB / 436.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002998/0.194, allocations: 2.088 MB / 438.3 MB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.1944, allocations: 0.7201 MB / 439 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.343e-05/0.1945, allocations: 5.094 kB / 439 MB, free: 7.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.654e-05/0.1946, allocations: 39.42 kB / 439 MB, free: 7.859 MB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1946, allocations: 0 / 439 MB, free: 7.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.2224, allocations: 3.077 MB / 442.1 MB, free: 4.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.76/8.982, allocations: 19.56 kB / 442.1 MB, free: 4.969 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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,der(PI.x),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.328634775010869]