Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001948/0.001948, allocations: 114.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002575/0.002575, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.614/2.614, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002525, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4752/0.4778, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.006495/0.4844, allocations: 2.004 MB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.4865, allocations: 0.5609 MB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.4868, allocations: 4 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.487, allocations: 19.8 kB / 412.5 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.4873, allocations: 27.72 kB / 412.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.4879, allocations: 59.86 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000345/0.4882, allocations: 123.6 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.4885, allocations: 57.36 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.4887, allocations: 59.77 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.4889, allocations: 47.78 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.738e-05/0.489, allocations: 16 kB / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.59e-05/0.489, allocations: 12 kB / 412.9 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.376e-05/0.4891, allocations: 35.78 kB / 412.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.4892, allocations: 55.72 kB / 413 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.4896, allocations: 131.3 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4896, allocations: 0 / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4897, allocations: 0 / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.4897, allocations: 4 kB / 413.1 MB, free: 14.38 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001096/0.4908, allocations: 428.4 kB / 413.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.4909, allocations: 8.031 kB / 413.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.493e-05/0.491, allocations: 16.75 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.4915, allocations: 207.6 kB / 413.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.4916, allocations: 12.38 kB / 413.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.5e-05/0.4917, allocations: 16.38 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008689/0.4925, allocations: 254.8 kB / 414 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.4926, allocations: 3.938 kB / 414 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.4926, allocations: 4 kB / 414 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.4926, allocations: 4 kB / 414.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.493, allocations: 91.88 kB / 414.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.4941, allocations: 0.5765 MB / 414.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006521/0.4948, allocations: 159.8 kB / 414.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.4952, allocations: 70.64 kB / 414.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.4952, allocations: 4 kB / 414.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/0.4953, allocations: 46.48 kB / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 3.487e-06/0.4953, allocations: 0 / 415 MB, free: 12.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009321/0.4962, allocations: 185.3 kB / 415.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.4964, allocations: 106.8 kB / 415.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.4966, allocations: 130 kB / 415.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.4966, allocations: 37.83 kB / 415.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.4968, allocations: 108 kB / 415.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.4969, allocations: 31.62 kB / 415.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.497, allocations: 33.72 kB / 415.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4972, allocations: 322.8 kB / 415.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.4974, allocations: 35.97 kB / 416 MB, free: 11.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.4978, allocations: 141 kB / 416.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006326/0.4984, allocations: 189.7 kB / 416.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/0.4985, allocations: 4 kB / 416.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007831/0.4993, allocations: 205.1 kB / 416.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.4993, allocations: 4 kB / 416.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.4994, allocations: 4.469 kB / 416.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-05/0.4994, allocations: 8 kB / 416.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.4997, allocations: 43.92 kB / 416.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.4998, allocations: 11.92 kB / 416.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.5, allocations: 19.84 kB / 416.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.5001, allocations: 12 kB / 416.6 MB, free: 10.51 MB / 334.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.0001955/0.5003, allocations: 125.7 kB / 416.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.5006, allocations: 97.8 kB / 416.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.5007, allocations: 20.81 kB / 416.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.5008, allocations: 3.938 kB / 416.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.5008, allocations: 4 kB / 416.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.5008, allocations: 0 / 416.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005422/0.5014, allocations: 209.5 kB / 417 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5014, allocations: 0 / 417 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.5018, allocations: 35.97 kB / 417.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.5018, allocations: 0 / 417.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.5018, allocations: 4 kB / 417.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.5018, allocations: 0 / 417.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.5018, allocations: 8 kB / 417.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009506/0.5028, allocations: 390.6 kB / 417.5 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.688e-05/0.5029, allocations: 85.05 kB / 417.6 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.5029, allocations: 8 kB / 417.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.5032, allocations: 12.05 kB / 417.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.5033, allocations: 4 kB / 417.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.5033, allocations: 4 kB / 417.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.5035, allocations: 99.25 kB / 417.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5035, allocations: 0 / 417.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006553/0.5042, allocations: 35.94 kB / 417.7 MB, free: 9.281 MB / 334.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.0001736/0.5044, allocations: 99.19 kB / 417.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.505, allocations: 119.8 kB / 417.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.505, allocations: 4 kB / 417.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.5052, allocations: 28.91 kB / 418 MB, free: 9.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009094/0.5062, allocations: 62.77 kB / 418 MB, free: 8.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.5077, allocations: 427.4 kB / 418.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.5083, allocations: 0.72 MB / 419.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.793e-05/0.5084, allocations: 15.44 kB / 419.2 MB, free: 7.75 MB / 334.1 MB Notification: Performance of SimCode: time 8.72e-07/0.5084, allocations: 0 / 419.2 MB, free: 7.75 MB / 334.1 MB Notification: Performance of Templates: time 0.006395/0.5148, allocations: 1.554 MB / 420.7 MB, free: 6.199 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches