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.0009652/0.0009652, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003925/0.00489, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0009902/0.0009902, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001236/0.002226, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 1.009/1.009, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0872/1.096, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.422e-06/1.422e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.32e-05/1.462e-05, allocations: 10.25 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002144/0.002159, allocations: 2.165 MB / 247.2 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006611/0.00282, allocations: 0.5412 MB / 247.7 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.53e-05/0.002905, allocations: 7.938 kB / 247.7 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.597e-05/0.002961, allocations: 15.8 kB / 247.7 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.654e-05/0.003018, allocations: 31.67 kB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001593/0.003177, allocations: 55.8 kB / 247.8 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.00332, allocations: 127.5 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.003429, allocations: 46.56 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.003532, allocations: 87.8 kB / 248.1 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.003e-05/0.003602, allocations: 47.81 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.003624, allocations: 8 kB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.003639, allocations: 12 kB / 248.1 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.003661, allocations: 15.94 kB / 248.2 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.003695, allocations: 31.94 kB / 248.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.003826, allocations: 83.62 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.003837, allocations: 0 / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003837, allocations: 0 / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.003851, allocations: 0 / 248.3 MB, free: 10.38 MB / 250.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.0004398/0.004291, allocations: 360 kB / 248.6 MB, free: 10 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.004324, allocations: 12.56 kB / 248.6 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.004358, allocations: 20.92 kB / 248.6 MB, free: 9.973 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.004511, allocations: 149.5 kB / 248.8 MB, free: 9.801 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.004521, allocations: 8.375 kB / 248.8 MB, free: 9.793 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.004544, allocations: 16.33 kB / 248.8 MB, free: 9.777 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.004761, allocations: 191.8 kB / 249 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.004771, allocations: 192 / 249 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.004782, allocations: 12.36 kB / 249 MB, free: 9.551 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.004788, allocations: 7.938 kB / 249 MB, free: 9.543 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.781e-05/0.004836, allocations: 27.92 kB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003838/0.00522, allocations: 461.9 kB / 249.5 MB, free: 9.027 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.00537, allocations: 103.7 kB / 249.6 MB, free: 8.898 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.631e-05/0.005406, allocations: 42.64 kB / 249.6 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.005426, allocations: 4 kB / 249.7 MB, free: 8.844 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.005447, allocations: 38.56 kB / 249.7 MB, free: 8.797 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.005448, allocations: 0 / 249.7 MB, free: 8.797 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001511/0.0056, allocations: 97.52 kB / 249.8 MB, free: 8.695 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.005651, allocations: 110.8 kB / 249.9 MB, free: 8.562 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.426e-05/0.005715, allocations: 134.6 kB / 250 MB, free: 8.418 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.005731, allocations: 29.7 kB / 250.1 MB, free: 8.383 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.005777, allocations: 112 kB / 250.2 MB, free: 8.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.005793, allocations: 19.84 kB / 250.2 MB, free: 8.25 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.29e-05/0.005825, allocations: 37.77 kB / 250.2 MB, free: 8.207 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.888e-05/0.005914, allocations: 330.7 kB / 250.5 MB, free: 7.875 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.479e-05/0.005929, allocations: 7.938 kB / 250.5 MB, free: 7.867 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.00597, allocations: 67.72 kB / 250.6 MB, free: 7.773 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.056e-05/0.006031, allocations: 78.72 kB / 250.7 MB, free: 7.672 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.006033, allocations: 4 kB / 250.7 MB, free: 7.668 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.494e-05/0.006108, allocations: 85.47 kB / 250.8 MB, free: 7.578 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.006118, allocations: 8 kB / 250.8 MB, free: 7.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.006122, allocations: 0 / 250.8 MB, free: 7.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.006135, allocations: 4 kB / 250.8 MB, free: 7.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.006236, allocations: 27.98 kB / 250.8 MB, free: 7.539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.646e-06/0.006239, allocations: 4 kB / 250.8 MB, free: 7.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.363e-05/0.006273, allocations: 24.03 kB / 250.8 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.006278, allocations: 7.984 kB / 250.9 MB, free: 7.504 MB / 250.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 5.653e-05/0.006335, allocations: 117.8 kB / 251 MB, free: 7.379 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.006408, allocations: 69.61 kB / 251 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.371e-05/0.006432, allocations: 12.78 kB / 251 MB, free: 7.293 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.006435, allocations: 4 kB / 251.1 MB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.006436, allocations: 0 / 251.1 MB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.006442, allocations: 7.984 kB / 251.1 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.006555, allocations: 97.73 kB / 251.2 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.006556, allocations: 0 / 251.2 MB, free: 7.168 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.006685, allocations: 51.95 kB / 251.2 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.165e-05/0.006697, allocations: 11.91 kB / 251.2 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.006698, allocations: 0 / 251.2 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.006709, allocations: 4 kB / 251.2 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.006711, allocations: 3.938 kB / 251.2 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.006712, allocations: 0 / 251.2 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.006842, allocations: 239.6 kB / 251.5 MB, free: 6.844 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.006857, allocations: 7.984 kB / 251.5 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.662e-05/0.006914, allocations: 4 kB / 251.5 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.328e-05/0.006937, allocations: 12.02 kB / 251.5 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.006942, allocations: 4 kB / 251.5 MB, free: 6.816 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.962e-05/0.006961, allocations: 28.09 kB / 251.5 MB, free: 6.789 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006961, allocations: 0 / 251.5 MB, free: 6.789 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001618/0.007123, allocations: 31.89 kB / 251.5 MB, free: 6.758 MB / 250.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 6.89e-05/0.007192, allocations: 92.23 kB / 251.6 MB, free: 6.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.786e-05/0.00728, allocations: 60.7 kB / 251.7 MB, free: 6.598 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.007285, allocations: 448 / 251.7 MB, free: 6.598 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.622e-05/0.007301, allocations: 20.92 kB / 251.7 MB, free: 6.574 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.00754, allocations: 64.14 kB / 251.8 MB, free: 6.512 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.008835, allocations: 327.8 kB / 252.1 MB, free: 6.152 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.643e-05/0.008881, allocations: 75.33 kB / 252.2 MB, free: 6.059 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.216e-05/0.008913, allocations: 12.95 kB / 252.2 MB, free: 6.047 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.678e-05/0.00898, allocations: 75.36 kB / 252.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of SimCode: time 5.01e-07/0.00898, allocations: 0 / 252.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of Templates: time 0.002947/0.01193, allocations: 1.444 MB / 253.7 MB, free: 4.594 MB / 250.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 -ignoreHideResult -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.5147479670122266]