Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00138/0.00138, allocations: 115.3 kB / 21.17 MB, free: 0.7812 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.001561/0.001561, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.526/1.526, allocations: 230.4 MB / 258.1 MB, free: 8.148 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 63.83 kB / 378.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3381, allocations: 53.32 MB / 432 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003709/0.3418, allocations: 2.047 MB / 434.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3428, allocations: 0.5376 MB / 434.6 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3429, allocations: 7.938 kB / 434.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.3431, allocations: 15.8 kB / 434.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.708e-05/0.3432, allocations: 19.8 kB / 434.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.3435, allocations: 59.81 kB / 434.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.3437, allocations: 123.6 kB / 434.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.3438, allocations: 45.42 kB / 434.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.3439, allocations: 55.72 kB / 434.9 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.932e-05/0.344, allocations: 47.78 kB / 435 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.981e-05/0.3441, allocations: 15.98 kB / 435 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.07e-05/0.3441, allocations: 8 kB / 435 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.158e-05/0.3441, allocations: 27.91 kB / 435 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.576e-05/0.3442, allocations: 55.67 kB / 435.1 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.3444, allocations: 129 kB / 435.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3444, allocations: 0 / 435.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3444, allocations: 4 kB / 435.2 MB, free: 4.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3444, allocations: 0 / 435.2 MB, free: 4.207 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.0007052/0.3452, allocations: 422.9 kB / 435.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.3452, allocations: 8.031 kB / 435.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.107e-05/0.3452, allocations: 24.78 kB / 435.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.3456, allocations: 200.2 kB / 435.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.3456, allocations: 12.31 kB / 435.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.3456, allocations: 20.33 kB / 435.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.3462, allocations: 243.4 kB / 436.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.3462, allocations: 7.938 kB / 436.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.3462, allocations: 7.938 kB / 436.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.3462, allocations: 4 kB / 436.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002758/0.3465, allocations: 91.84 kB / 436.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007263/0.3472, allocations: 0.5922 MB / 436.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.3475, allocations: 135.9 kB / 437 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3477, allocations: 86.55 kB / 437 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.3477, allocations: 0 / 437 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.3477, allocations: 38.56 kB / 437.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.3477, allocations: 0 / 437.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005284/0.3482, allocations: 177.4 kB / 437.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.3483, allocations: 110.8 kB / 437.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.3484, allocations: 128.9 kB / 437.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.3485, allocations: 29.7 kB / 437.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.3485, allocations: 115.8 kB / 437.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.549e-05/0.3486, allocations: 27.78 kB / 437.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.3486, allocations: 41.83 kB / 437.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3488, allocations: 318.8 kB / 438 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.3489, allocations: 39.91 kB / 438 MB, free: 1.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.3491, allocations: 131.9 kB / 438.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.3494, allocations: 176.7 kB / 438.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3494, allocations: 0 / 438.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003735/0.3498, allocations: 189.4 kB / 438.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3498, allocations: 8.375 kB / 438.5 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.3498, allocations: 7.984 kB / 438.5 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.3498, allocations: 7.938 kB / 438.6 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.35, allocations: 39.92 kB / 438.6 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.35, allocations: 11.88 kB / 438.6 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.3502, allocations: 23.88 kB / 438.6 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.3502, allocations: 8.25 kB / 438.6 MB, free: 400 kB / 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.0001204/0.3503, allocations: 129.8 kB / 438.8 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.3504, allocations: 81.58 kB / 438.8 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.224e-05/0.3505, allocations: 24.64 kB / 438.9 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.3505, allocations: 0 / 438.9 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3505, allocations: 0 / 438.9 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.3505, allocations: 4 kB / 438.9 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000302/0.3508, allocations: 205.7 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3508, allocations: 3.938 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.351, allocations: 39.92 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.351, allocations: 4 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.351, allocations: 3.75 kB / 439.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.351, allocations: 4 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.351, allocations: 3.984 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005505/0.3516, allocations: 367.7 kB / 439.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.786e-05/0.3516, allocations: 85.09 kB / 439.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.3517, allocations: 19.92 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.3518, allocations: 7.984 kB / 439.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.3518, allocations: 8 kB / 439.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.3518, allocations: 4 kB / 439.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.353e-05/0.3519, allocations: 99.25 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3519, allocations: 64 / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.3522, allocations: 35.89 kB / 439.7 MB, free: 15.18 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.0001184/0.3524, allocations: 99.25 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003386/0.3527, allocations: 119.6 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3527, allocations: 0 / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.3528, allocations: 35.97 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004979/0.3533, allocations: 44.33 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000777/0.3541, allocations: 427.2 kB / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.3544, allocations: 0.7084 MB / 441.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.3545, allocations: 15.44 kB / 441.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3545, allocations: 0 / 441.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Templates: time 0.003705/0.3582, allocations: 1.502 MB / 442.7 MB, free: 12.18 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.402953940909356]