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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001993/0.001993, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.002785/0.002785, allocations: 213.4 kB / 23 MB, free: 5.609 MB / 14.72 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.529/1.529, allocations: 230.2 MB / 256.2 MB, free: 8.547 MB / 206.1 MB " [Timeout remaining time 178] 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=5051,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=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.89 kB / 376.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.329, allocations: 53.33 MB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003668/0.3327, allocations: 2.043 MB / 431.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.3338, allocations: 0.5337 MB / 432.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.3339, allocations: 11.94 kB / 432.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.334, allocations: 15.8 kB / 432.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.859e-05/0.3341, allocations: 23.78 kB / 432.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.3345, allocations: 59.88 kB / 432.5 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.3347, allocations: 115.6 kB / 432.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3348, allocations: 41.41 kB / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.22e-05/0.3349, allocations: 55.73 kB / 432.7 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.959e-05/0.335, allocations: 51.77 kB / 432.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.335, allocations: 12 kB / 432.7 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.991e-05/0.3351, allocations: 8 kB / 432.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.899e-05/0.3351, allocations: 35.84 kB / 432.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.152e-05/0.3352, allocations: 51.73 kB / 432.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.3354, allocations: 124.7 kB / 432.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3354, allocations: 0 / 432.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3354, allocations: 0 / 432.9 MB, free: 4.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.3354, allocations: 0 / 432.9 MB, free: 4.363 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007015/0.3361, allocations: 430.9 kB / 433.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3362, allocations: 8.031 kB / 433.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.3362, allocations: 20.84 kB / 433.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.3365, allocations: 219.4 kB / 433.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.3365, allocations: 16.31 kB / 433.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.3365, allocations: 16.31 kB / 433.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.3371, allocations: 246.9 kB / 433.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.3371, allocations: 0 / 433.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.3371, allocations: 4 kB / 433.9 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3371, allocations: 4 kB / 433.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002456/0.3374, allocations: 79.88 kB / 434 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007169/0.3381, allocations: 0.5961 MB / 434.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.3384, allocations: 143.9 kB / 434.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.3385, allocations: 70.64 kB / 434.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.3386, allocations: 3.984 kB / 434.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.3386, allocations: 38.56 kB / 434.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.3386, allocations: 0 / 434.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005259/0.3391, allocations: 181.4 kB / 435 MB, free: 2.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.697e-05/0.3392, allocations: 110.8 kB / 435.1 MB, free: 1.953 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3393, allocations: 129.1 kB / 435.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.3394, allocations: 33.83 kB / 435.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.727e-05/0.3395, allocations: 115.8 kB / 435.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.3395, allocations: 27.73 kB / 435.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.3395, allocations: 37.7 kB / 435.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3397, allocations: 322.8 kB / 435.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.3398, allocations: 35.97 kB / 435.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.34, allocations: 124.9 kB / 435.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.3403, allocations: 180.6 kB / 436.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3403, allocations: 0 / 436.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003771/0.3407, allocations: 193.8 kB / 436.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.3407, allocations: 8 kB / 436.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3407, allocations: 4 kB / 436.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.3407, allocations: 8.375 kB / 436.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.3409, allocations: 51.84 kB / 436.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.3409, allocations: 11.92 kB / 436.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.341, allocations: 23.88 kB / 436.4 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.341, allocations: 8 kB / 436.4 MB, free: 0.5312 MB / 334.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 0.0001285/0.3412, allocations: 129.7 kB / 436.5 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.3413, allocations: 81.64 kB / 436.6 MB, free: 316 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.3414, allocations: 20.66 kB / 436.6 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3414, allocations: 0 / 436.6 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3414, allocations: 4 kB / 436.6 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3414, allocations: 4 kB / 436.6 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/0.3417, allocations: 205.5 kB / 436.8 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3417, allocations: 3.938 kB / 436.8 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/0.3419, allocations: 31.97 kB / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3419, allocations: 4 kB / 436.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.3419, allocations: 7.938 kB / 436.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3419, allocations: 8 kB / 436.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3419, allocations: 0 / 436.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005596/0.3425, allocations: 371.5 kB / 437.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.3425, allocations: 93 kB / 437.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.61e-05/0.3426, allocations: 7.938 kB / 437.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.3427, allocations: 4 kB / 437.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/0.3427, allocations: 12.05 kB / 437.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3427, allocations: 8 kB / 437.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.786e-05/0.3428, allocations: 95.27 kB / 437.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3428, allocations: 0 / 437.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003187/0.3431, allocations: 27.94 kB / 437.5 MB, free: 15.32 MB / 350.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 0.0001507/0.3433, allocations: 103.2 kB / 437.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.3436, allocations: 111.8 kB / 437.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.3436, allocations: 8 kB / 437.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/0.3437, allocations: 23.92 kB / 437.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.3442, allocations: 52.83 kB / 437.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008601/0.3451, allocations: 401.4 kB / 438.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.3455, allocations: 0.7123 MB / 438.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.763e-05/0.3456, allocations: 12.61 kB / 438.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.3456, allocations: 23.42 kB / 438.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3456, allocations: 0 / 438.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of Templates: time 0.004509/0.3501, allocations: 1.233 MB / 440.1 MB, free: 12.64 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.666733151301742]