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) 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002375/0.002375, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.478/2.478, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 59.89 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4503/0.4525, allocations: 50.55 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.006969/0.4596, allocations: 2.007 MB / 411.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.4617, allocations: 0.5377 MB / 412.5 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.4619, allocations: 7.938 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.4622, allocations: 15.8 kB / 412.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.4624, allocations: 19.8 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006811/0.4631, allocations: 59.88 kB / 412.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003723/0.4635, allocations: 123.5 kB / 412.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.4637, allocations: 49.42 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.464, allocations: 51.72 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.4642, allocations: 59.75 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.619e-05/0.4643, allocations: 12 kB / 412.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.801e-05/0.4643, allocations: 12 kB / 412.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.01e-05/0.4644, allocations: 23.92 kB / 412.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.4645, allocations: 59.67 kB / 412.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003984/0.4649, allocations: 123.4 kB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.465, allocations: 0 / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.465, allocations: 0 / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.465, allocations: 0 / 413.1 MB, free: 14.45 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001066/0.4661, allocations: 432.3 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.4662, allocations: 8.031 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.51e-05/0.4663, allocations: 20.73 kB / 413.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.4668, allocations: 196.2 kB / 413.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.4668, allocations: 12.38 kB / 413.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.945e-05/0.4669, allocations: 16.31 kB / 413.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009195/0.4678, allocations: 250.3 kB / 414 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.565e-05/0.4679, allocations: 11.84 kB / 414 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.481e-05/0.4679, allocations: 3.938 kB / 414 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.4679, allocations: 4 kB / 414 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005038/0.4685, allocations: 91.86 kB / 414.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.4699, allocations: 0.5726 MB / 414.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/0.4704, allocations: 147.9 kB / 414.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.4708, allocations: 82.55 kB / 414.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.118e-05/0.4708, allocations: 8 kB / 414.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/0.4709, allocations: 34.56 kB / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 3.015e-06/0.4709, allocations: 0 / 414.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009077/0.4718, allocations: 177.3 kB / 415.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.472, allocations: 114.9 kB / 415.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.4722, allocations: 130.1 kB / 415.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.4722, allocations: 25.7 kB / 415.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.641e-05/0.4723, allocations: 115.7 kB / 415.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.4724, allocations: 27.64 kB / 415.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.4725, allocations: 37.7 kB / 415.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.4727, allocations: 318.8 kB / 415.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.4729, allocations: 35.92 kB / 415.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.4733, allocations: 131.1 kB / 416 MB, free: 11.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005307/0.4738, allocations: 184.7 kB / 416.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4738, allocations: 0 / 416.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006803/0.4745, allocations: 189.2 kB / 416.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/0.4746, allocations: 4 kB / 416.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.4746, allocations: 8.438 kB / 416.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/0.4747, allocations: 16.31 kB / 416.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.475, allocations: 43.92 kB / 416.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/0.475, allocations: 11.92 kB / 416.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.4753, allocations: 15.84 kB / 416.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.4753, allocations: 15.94 kB / 416.5 MB, free: 10.63 MB / 334.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.0002161/0.4755, allocations: 125.8 kB / 416.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.4758, allocations: 77.59 kB / 416.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.934e-05/0.4759, allocations: 24.64 kB / 416.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.476, allocations: 4 kB / 416.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.476, allocations: 0 / 416.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.476, allocations: 240 / 416.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005182/0.4765, allocations: 209.5 kB / 416.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.4765, allocations: 7.938 kB / 416.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.4768, allocations: 31.92 kB / 417 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.445e-05/0.4769, allocations: 7.984 kB / 417 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.4769, allocations: 7.922 kB / 417 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.4769, allocations: 0 / 417 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.4769, allocations: 8 kB / 417 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009314/0.4779, allocations: 367.5 kB / 417.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.478, allocations: 85.05 kB / 417.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/0.4781, allocations: 7.938 kB / 417.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4783, allocations: 16.05 kB / 417.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.983e-05/0.4784, allocations: 0 / 417.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.4785, allocations: 7.984 kB / 417.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.4786, allocations: 102.6 kB / 417.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4786, allocations: 4 kB / 417.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006174/0.4792, allocations: 31.84 kB / 417.6 MB, free: 9.418 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 (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.0002044/0.4795, allocations: 95.25 kB / 417.7 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006266/0.4801, allocations: 119.8 kB / 417.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4801, allocations: 0 / 417.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.4803, allocations: 32.78 kB / 417.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007974/0.4812, allocations: 44.39 kB / 417.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.4824, allocations: 423.7 kB / 418.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.4829, allocations: 0.7084 MB / 419 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.323e-05/0.483, allocations: 19.44 kB / 419 MB, free: 7.918 MB / 334.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4831, allocations: 0 / 419 MB, free: 7.918 MB / 334.1 MB Notification: Performance of Templates: time 0.006224/0.4893, allocations: 1.51 MB / 420.5 MB, free: 6.414 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches