Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00094/0.00094, allocations: 139.9 kB / 24.88 MB, free: 9.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8911/0.8911, allocations: 173.3 MB / 201.5 MB, free: 9.211 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 3.938 kB / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.143e-05/1.287e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002089/0.002102, allocations: 1.956 MB / 270.4 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006559/0.002758, allocations: 458.6 kB / 270.9 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.885e-05/0.002827, allocations: 4 kB / 270.9 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.603e-05/0.002913, allocations: 15.86 kB / 270.9 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.257e-05/0.002965, allocations: 23.73 kB / 270.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001103/0.003075, allocations: 31.94 kB / 271 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.003187, allocations: 111.5 kB / 271.1 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.297e-05/0.00328, allocations: 30.2 kB / 271.1 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.527e-05/0.003365, allocations: 59.89 kB / 271.2 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.894e-05/0.003424, allocations: 31.89 kB / 271.2 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.003441, allocations: 8 kB / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.234e-05/0.003454, allocations: 8 kB / 271.2 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.003475, allocations: 19.92 kB / 271.2 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.63e-05/0.003501, allocations: 31.91 kB / 271.3 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.003611, allocations: 71.69 kB / 271.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.003613, allocations: 4 kB / 271.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.003614, allocations: 0 / 271.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.835e-06/0.003617, allocations: 4 kB / 271.3 MB, free: 3.305 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.00029/0.003907, allocations: 304.7 kB / 271.6 MB, free: 2.984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.628e-05/0.003933, allocations: 8.922 kB / 271.6 MB, free: 2.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.003962, allocations: 16.92 kB / 271.7 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.004079, allocations: 125.6 kB / 271.8 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.136e-06/0.004087, allocations: 8.562 kB / 271.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.004107, allocations: 12.36 kB / 271.8 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.004223, allocations: 115.9 kB / 271.9 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.004232, allocations: 4 kB / 271.9 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.004238, allocations: 0 / 271.9 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.004248, allocations: 4 kB / 271.9 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.763e-05/0.004286, allocations: 27.02 kB / 272 MB, free: 2.637 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.004617, allocations: 381 kB / 272.3 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.097e-05/0.004688, allocations: 50.5 kB / 272.4 MB, free: 2.176 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.988e-05/0.004708, allocations: 17 kB / 272.4 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-06/0.004715, allocations: 0 / 272.4 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.004734, allocations: 46.44 kB / 272.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 7.52e-07/0.004735, allocations: 0 / 272.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001037/0.004839, allocations: 61.67 kB / 272.5 MB, free: 2.035 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.034e-05/0.004859, allocations: 51.41 kB / 272.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.743e-05/0.004916, allocations: 130.2 kB / 272.7 MB, free: 1.836 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.004926, allocations: 25.7 kB / 272.7 MB, free: 1.805 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.805e-05/0.004964, allocations: 116.1 kB / 272.8 MB, free: 1.688 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.004977, allocations: 23.75 kB / 272.8 MB, free: 1.664 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.005007, allocations: 33.69 kB / 272.9 MB, free: 1.625 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.005066, allocations: 314.8 kB / 273.2 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.484e-05/0.00508, allocations: 15.98 kB / 273.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.913e-05/0.00511, allocations: 47.84 kB / 273.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.012e-05/0.00516, allocations: 64.14 kB / 273.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.005161, allocations: 0 / 273.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 7.802e-05/0.005239, allocations: 77.55 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.005251, allocations: 11.92 kB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.005257, allocations: 12.12 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.005268, allocations: 0 / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.005391, allocations: 31.98 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.005395, allocations: 3.938 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.093e-05/0.005426, allocations: 19.88 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-06/0.00543, allocations: 4 kB / 273.5 MB, free: 0.9922 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 4.864e-05/0.005478, allocations: 113.8 kB / 273.6 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.005495, allocations: 7.938 kB / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.028e-05/0.005515, allocations: 12.42 kB / 273.6 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.005518, allocations: 11.98 kB / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.005519, allocations: 0 / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.005521, allocations: 0 / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.821e-05/0.0056, allocations: 89.86 kB / 273.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.0056, allocations: 0 / 273.7 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.097e-05/0.005661, allocations: 23.92 kB / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.005662, allocations: 0 / 273.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.005672, allocations: 7.938 kB / 273.7 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.005673, allocations: 3.938 kB / 273.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.005674, allocations: 0 / 273.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.00578, allocations: 167.5 kB / 273.9 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.568e-06/0.00579, allocations: 11.89 kB / 273.9 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.0058, allocations: 3.938 kB / 273.9 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.699e-05/0.005837, allocations: 8 kB / 273.9 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.33e-05/0.005861, allocations: 7.984 kB / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.005863, allocations: 0 / 273.9 MB, free: 500 kB / 250.7 MB Notification: Performance of sorting global known variables: time 1.628e-05/0.005879, allocations: 20.83 kB / 273.9 MB, free: 476 kB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005879, allocations: 4 kB / 273.9 MB, free: 472 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001286/0.006008, allocations: 23.95 kB / 274 MB, free: 448 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 5.924e-05/0.006067, allocations: 84.36 kB / 274 MB, free: 356 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.221e-05/0.006139, allocations: 40.78 kB / 274.1 MB, free: 312 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.006142, allocations: 0 / 274.1 MB, free: 312 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.909e-05/0.006161, allocations: 20.84 kB / 274.1 MB, free: 288 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.006312, allocations: 20.53 kB / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004671/0.006779, allocations: 300.5 kB / 274.4 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.316e-05/0.006813, allocations: 71.33 kB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.636e-05/0.006839, allocations: 8.484 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/0.006897, allocations: 71.36 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.006897, allocations: 0 / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of Templates: time 0.002337/0.009234, allocations: 1.154 MB / 275.7 MB, free: 14.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.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.4190083262510598]