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.0009081/0.0009081, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 227.7 MB / 247.5 MB, free: 9.461 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002392/0.0002393, allocations: 8 kB / 308.4 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.0882, allocations: 51.52 MB / 359.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002094/0.09033, allocations: 1.704 MB / 361.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008081/0.09115, allocations: 0.5338 MB / 362.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.949e-05/0.09124, allocations: 0 / 362.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.611e-05/0.09134, allocations: 15.86 kB / 362.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.024e-05/0.09141, allocations: 19.84 kB / 362.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.0917, allocations: 43.91 kB / 362.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.09185, allocations: 119.6 kB / 362.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.092, allocations: 48.92 kB / 362.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.149e-05/0.09209, allocations: 43.73 kB / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.697e-05/0.09218, allocations: 43.78 kB / 362.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.09221, allocations: 11.94 kB / 362.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.698e-05/0.09223, allocations: 4 kB / 362.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.09226, allocations: 19.91 kB / 362.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.078e-05/0.09234, allocations: 77.38 kB / 362.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.09247, allocations: 88.05 kB / 362.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.09248, allocations: 3.984 kB / 362.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.09249, allocations: 0 / 362.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.0925, allocations: 0 / 362.7 MB, free: 10.23 MB / 302.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.0005315/0.09304, allocations: 407.2 kB / 363.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.09308, allocations: 12.03 kB / 363.1 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.09312, allocations: 12.75 kB / 363.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001953/0.09332, allocations: 204.1 kB / 363.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.09335, allocations: 8.375 kB / 363.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.09338, allocations: 12.38 kB / 363.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004728/0.09386, allocations: 250.4 kB / 363.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.09389, allocations: 3.906 kB / 363.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.09391, allocations: 7.938 kB / 363.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.09392, allocations: 8 kB / 363.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.09419, allocations: 95.88 kB / 363.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005902/0.09479, allocations: 0.5881 MB / 364.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.09507, allocations: 155.9 kB / 364.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.09524, allocations: 78.64 kB / 364.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.09527, allocations: 4 kB / 364.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.0953, allocations: 42.5 kB / 364.5 MB, free: 8.141 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.09531, allocations: 0 / 364.5 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005152/0.09583, allocations: 193.3 kB / 364.7 MB, free: 7.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.0959, allocations: 115.2 kB / 364.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.972e-05/0.09601, allocations: 128.9 kB / 365 MB, free: 7.672 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.09603, allocations: 25.7 kB / 365 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.771e-05/0.0961, allocations: 111.9 kB / 365.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.09614, allocations: 35.7 kB / 365.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.09618, allocations: 25.7 kB / 365.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.09628, allocations: 322.8 kB / 365.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.0964, allocations: 39.97 kB / 365.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.09658, allocations: 135.2 kB / 365.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.09687, allocations: 196.7 kB / 365.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.09689, allocations: 0 / 365.8 MB, free: 6.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003631/0.09725, allocations: 201.3 kB / 366 MB, free: 6.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.09728, allocations: 4 kB / 366 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.09729, allocations: 4 kB / 366 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.09731, allocations: 7.938 kB / 366 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.09748, allocations: 43.92 kB / 366.1 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.0975, allocations: 7.984 kB / 366.1 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.09761, allocations: 28.19 kB / 366.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.09763, allocations: 8 kB / 366.1 MB, free: 6.379 MB / 302.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 9.614e-05/0.09773, allocations: 133.7 kB / 366.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.09787, allocations: 85.53 kB / 366.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.09791, allocations: 16.66 kB / 366.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.09792, allocations: 4 kB / 366.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.09793, allocations: 0 / 366.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.09794, allocations: 0 / 366.4 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.09819, allocations: 213.5 kB / 366.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.09821, allocations: 7.938 kB / 366.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.09838, allocations: 35.97 kB / 366.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.09839, allocations: 3.938 kB / 366.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.09841, allocations: 11.94 kB / 366.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.09842, allocations: 0 / 366.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.09842, allocations: 0 / 366.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.09893, allocations: 379.8 kB / 367 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.09899, allocations: 93.05 kB / 367.1 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.09902, allocations: 19.91 kB / 367.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.09916, allocations: 8 kB / 367.1 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.0992, allocations: 7.922 kB / 367.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.09921, allocations: 8 kB / 367.1 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.314e-05/0.09927, allocations: 95.36 kB / 367.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.09928, allocations: 3.938 kB / 367.2 MB, free: 5.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.0996, allocations: 27.91 kB / 367.3 MB, free: 5.145 MB / 302.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 9.567e-05/0.0997, allocations: 107.2 kB / 367.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.1, allocations: 124.6 kB / 367.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1, allocations: 0 / 367.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1001, allocations: 31.97 kB / 367.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.1006, allocations: 55.95 kB / 367.6 MB, free: 4.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000656/0.1013, allocations: 0.4956 MB / 368.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.1015, allocations: 0.7087 MB / 368.8 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.1016, allocations: 19.44 kB / 368.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of SimCode: time 1.503e-06/0.1016, allocations: 0 / 368.8 MB, free: 3.527 MB / 302.1 MB Notification: Performance of Templates: time 0.002865/0.1045, allocations: 1.476 MB / 370.3 MB, free: 2.062 MB / 302.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