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) 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001968/0.001968, allocations: 109.7 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.002637/0.002637, allocations: 206.8 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.559/2.559, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 63.89 kB / 359.4 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.444, allocations: 50.54 MB / 409.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.005052/0.4491, allocations: 2.039 MB / 411.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.4508, allocations: 0.596 MB / 412.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.4511, allocations: 8 kB / 412.6 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.4513, allocations: 19.8 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.4517, allocations: 31.7 kB / 412.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.4521, allocations: 67.8 kB / 412.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.4525, allocations: 127.6 kB / 412.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.4527, allocations: 65.83 kB / 412.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.4529, allocations: 55.72 kB / 412.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.453, allocations: 55.7 kB / 413 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.773e-05/0.4531, allocations: 12 kB / 413 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.206e-05/0.4531, allocations: 12 kB / 413 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.4532, allocations: 31.84 kB / 413 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.4533, allocations: 67.61 kB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003045/0.4536, allocations: 143.2 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4537, allocations: 4 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4537, allocations: 4 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.4537, allocations: 0 / 413.2 MB, free: 14.32 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001043/0.4547, allocations: 460.1 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.4548, allocations: 8.031 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.988e-05/0.4549, allocations: 16.75 kB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004851/0.4554, allocations: 216 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.4554, allocations: 12.38 kB / 413.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.4555, allocations: 12.38 kB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007534/0.4562, allocations: 266.7 kB / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.4563, allocations: 0 / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.861e-05/0.4563, allocations: 4 kB / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4563, allocations: 4 kB / 414.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000369/0.4567, allocations: 87.88 kB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009718/0.4577, allocations: 0.5959 MB / 414.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.4583, allocations: 151.8 kB / 415 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.4586, allocations: 78.58 kB / 415.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.116e-05/0.4587, allocations: 7.984 kB / 415.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.4587, allocations: 34.56 kB / 415.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.284e-06/0.4587, allocations: 3.938 kB / 415.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009471/0.4597, allocations: 189.3 kB / 415.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.4598, allocations: 114.8 kB / 415.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.4601, allocations: 162.2 kB / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.4601, allocations: 29.7 kB / 415.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.4603, allocations: 112.5 kB / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.447e-05/0.4603, allocations: 27.64 kB / 415.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4605, allocations: 37.62 kB / 415.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.4607, allocations: 327 kB / 416.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.4609, allocations: 35.97 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.4612, allocations: 145.3 kB / 416.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.4618, allocations: 193.6 kB / 416.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4618, allocations: 0 / 416.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006922/0.4625, allocations: 193.2 kB / 416.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.4626, allocations: 4 kB / 416.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.4626, allocations: 4 kB / 416.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.4626, allocations: 11.98 kB / 416.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.4629, allocations: 43.92 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.976e-05/0.463, allocations: 8.312 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.4632, allocations: 28.3 kB / 416.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.4632, allocations: 12 kB / 416.8 MB, free: 10.34 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.000221/0.4635, allocations: 133.7 kB / 416.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.4638, allocations: 93.44 kB / 417 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.4639, allocations: 16.72 kB / 417 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4639, allocations: 4 kB / 417 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.464, allocations: 4 kB / 417.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.464, allocations: 3.984 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005096/0.4645, allocations: 217.5 kB / 417.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.4645, allocations: 11.94 kB / 417.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003908/0.4649, allocations: 35.97 kB / 417.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.094e-05/0.465, allocations: 4 kB / 417.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.465, allocations: 0 / 417.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.788e-06/0.465, allocations: 4 kB / 417.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.465, allocations: 3.938 kB / 417.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.4661, allocations: 387.2 kB / 417.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.4662, allocations: 104.9 kB / 417.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.48e-05/0.4663, allocations: 4 kB / 417.8 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.4666, allocations: 7.984 kB / 417.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.4666, allocations: 4 kB / 417.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.4667, allocations: 8 kB / 417.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.4669, allocations: 123.3 kB / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4669, allocations: 0 / 418 MB, free: 9.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006532/0.4675, allocations: 24 kB / 418 MB, free: 9.066 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.0001741/0.4677, allocations: 111.1 kB / 418.1 MB, free: 8.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.4684, allocations: 119.5 kB / 418.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4684, allocations: 3.938 kB / 418.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.4686, allocations: 27.97 kB / 418.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009095/0.4695, allocations: 68.2 kB / 418.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.471, allocations: 455.5 kB / 418.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.4715, allocations: 0.7201 MB / 419.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.4716, allocations: 15.42 kB / 419.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4716, allocations: 4 kB / 419.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of Templates: time 0.006099/0.4777, allocations: 1.632 MB / 421.1 MB, free: 5.867 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches