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.001077/0.001077, allocations: 86.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001855/0.001855, allocations: 169.1 kB / 24.82 MB, free: 8.934 MB / 18.57 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 0.995/0.995, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.511e-05, allocations: 2.312 kB / 273.3 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002807/0.002832, allocations: 2.105 MB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008388/0.003671, allocations: 0.5219 MB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.003788, allocations: 7.938 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.003905, allocations: 19.8 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.043e-05/0.003995, allocations: 19.78 kB / 276 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000261/0.004256, allocations: 63.75 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.004421, allocations: 131.5 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001303/0.004551, allocations: 45.97 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.004671, allocations: 79.75 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.934e-05/0.00474, allocations: 39.88 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.004763, allocations: 8 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.508e-05/0.004778, allocations: 12 kB / 276.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.641e-05/0.004804, allocations: 27.91 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.511e-05/0.004839, allocations: 43.84 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.005, allocations: 87.7 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.005002, allocations: 0 / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005003, allocations: 0 / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.005008, allocations: 3.938 kB / 276.5 MB, free: 14.01 MB / 266.7 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.0004158/0.005424, allocations: 460 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.005462, allocations: 15.98 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.313e-05/0.005505, allocations: 28.78 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.005664, allocations: 159.2 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.005675, allocations: 8.375 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.005701, allocations: 16.33 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.005978, allocations: 208.8 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.005989, allocations: 192 / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.006, allocations: 8.375 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.006006, allocations: 3.938 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.813e-05/0.006054, allocations: 31.91 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004889/0.006543, allocations: 0.6445 MB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.006712, allocations: 133.3 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.578e-05/0.006758, allocations: 55.12 kB / 278.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.006781, allocations: 7.984 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.006804, allocations: 37.39 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.006805, allocations: 0 / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002001/0.007005, allocations: 113.4 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.007067, allocations: 118.8 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.799e-05/0.007155, allocations: 201.2 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.007166, allocations: 25.7 kB / 278.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.007233, allocations: 159 kB / 278.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.007249, allocations: 27.78 kB / 278.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.007288, allocations: 35.36 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.007408, allocations: 0.4961 MB / 279.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.907e-05/0.007427, allocations: 11.98 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.353e-05/0.007481, allocations: 97.03 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/0.007565, allocations: 97.38 kB / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.007567, allocations: 0 / 279.7 MB, free: 10.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001091/0.007676, allocations: 105.4 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.00769, allocations: 7.125 kB / 279.8 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.007696, allocations: 4 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.007707, allocations: 4 kB / 279.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.878e-05/0.007786, allocations: 28.14 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.357e-06/0.007789, allocations: 4 kB / 279.8 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.836e-05/0.007828, allocations: 15.92 kB / 279.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.007835, allocations: 8 kB / 279.8 MB, free: 10.32 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.88e-05/0.007914, allocations: 164.6 kB / 280 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.008028, allocations: 77.53 kB / 280.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.008059, allocations: 16.77 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.008061, allocations: 4 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.008065, allocations: 0 / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.00807, allocations: 4 kB / 280.1 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.00822, allocations: 133.1 kB / 280.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.008221, allocations: 0 / 280.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.008337, allocations: 43.92 kB / 280.3 MB, free: 9.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.008342, allocations: 7.984 kB / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.008353, allocations: 0 / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.008354, allocations: 0 / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.008356, allocations: 4 kB / 280.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.008598, allocations: 346.6 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.392e-05/0.008622, allocations: 11.94 kB / 280.6 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.008649, allocations: 11.98 kB / 280.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-05/0.008739, allocations: 8.031 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.163e-05/0.008771, allocations: 0 / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.00878, allocations: 12.28 kB / 280.7 MB, free: 9.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.278e-05/0.008833, allocations: 135.2 kB / 280.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008833, allocations: 0 / 280.8 MB, free: 9.297 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.009041, allocations: 31.89 kB / 280.8 MB, free: 9.266 MB / 266.7 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 9.233e-05/0.009133, allocations: 99.25 kB / 280.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001231/0.009256, allocations: 83.75 kB / 281 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.009258, allocations: 0 / 281 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.211e-05/0.00928, allocations: 23.61 kB / 281 MB, free: 9.047 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.009605, allocations: 47.09 kB / 281.1 MB, free: 9 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/0.01032, allocations: 370.7 kB / 281.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.131e-05/0.01038, allocations: 71.34 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.577e-05/0.01041, allocations: 8.969 kB / 281.5 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.01049, allocations: 86.19 kB / 281.6 MB, free: 8.418 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.01049, allocations: 0 / 281.6 MB, free: 8.418 MB / 266.7 MB Notification: Performance of Templates: time 0.003282/0.01378, allocations: 1.443 MB / 283 MB, free: 7.039 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7870936687104404]