Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001642/0.001642, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.001867/0.001867, allocations: 209.9 kB / 24.47 MB, free: 3.996 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.508/1.508, allocations: 230.4 MB / 258.1 MB, free: 8.125 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [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.002005/0.002005, allocations: 67.84 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3345, allocations: 53.31 MB / 432 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003818/0.3383, allocations: 2.051 MB / 434.1 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3394, allocations: 0.5649 MB / 434.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.3396, allocations: 4 kB / 434.6 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.3397, allocations: 15.8 kB / 434.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.3398, allocations: 35.72 kB / 434.7 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.3401, allocations: 59.86 kB / 434.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001948/0.3403, allocations: 119.6 kB / 434.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.3404, allocations: 41.33 kB / 434.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.679e-05/0.3405, allocations: 63.77 kB / 435 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.557e-05/0.3406, allocations: 59.7 kB / 435 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.3407, allocations: 8 kB / 435 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.11e-05/0.3407, allocations: 12 kB / 435 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.587e-05/0.3407, allocations: 23.92 kB / 435.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.078e-05/0.3408, allocations: 59.66 kB / 435.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.341, allocations: 129.4 kB / 435.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.341, allocations: 0 / 435.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.341, allocations: 0 / 435.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.341, allocations: 0 / 435.3 MB, free: 4.121 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007046/0.3417, allocations: 438.9 kB / 435.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3418, allocations: 12.03 kB / 435.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.3418, allocations: 12.84 kB / 435.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.3421, allocations: 212.1 kB / 435.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.3421, allocations: 8.375 kB / 435.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.3422, allocations: 12.38 kB / 435.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005373/0.3427, allocations: 258.9 kB / 436.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.3427, allocations: 3.938 kB / 436.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.3428, allocations: 8 kB / 436.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3428, allocations: 8 kB / 436.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002644/0.343, allocations: 87.86 kB / 436.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/0.3437, allocations: 0.5844 MB / 436.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.3441, allocations: 139.7 kB / 437 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.3443, allocations: 70.77 kB / 437.1 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.3443, allocations: 7.984 kB / 437.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.3443, allocations: 46.56 kB / 437.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.3443, allocations: 0 / 437.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005517/0.3449, allocations: 185.4 kB / 437.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.345, allocations: 106.8 kB / 437.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3451, allocations: 139.3 kB / 437.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.3451, allocations: 25.7 kB / 437.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.309e-05/0.3452, allocations: 116.1 kB / 437.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.3453, allocations: 31.77 kB / 437.7 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-05/0.3453, allocations: 37.7 kB / 437.8 MB, free: 1.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3455, allocations: 322.8 kB / 438.1 MB, free: 1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.3456, allocations: 31.98 kB / 438.1 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3458, allocations: 137.6 kB / 438.2 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.3462, allocations: 189.5 kB / 438.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3462, allocations: 0 / 438.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004258/0.3466, allocations: 205.5 kB / 438.6 MB, free: 352 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3466, allocations: 8.062 kB / 438.6 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3466, allocations: 4 kB / 438.6 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.3466, allocations: 8 kB / 438.7 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3468, allocations: 43.91 kB / 438.7 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3468, allocations: 4 kB / 438.7 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.3469, allocations: 24.27 kB / 438.7 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.3469, allocations: 8 kB / 438.7 MB, free: 252 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001289/0.3471, allocations: 137.6 kB / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.3472, allocations: 93.52 kB / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.181e-05/0.3473, allocations: 16.72 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.3473, allocations: 4 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3473, allocations: 0 / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3473, allocations: 3.984 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.3476, allocations: 209.5 kB / 439.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3476, allocations: 0 / 439.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.3478, allocations: 31.98 kB / 439.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3478, allocations: 7.938 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.3478, allocations: 4 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3478, allocations: 0 / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3478, allocations: 4 kB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006001/0.3484, allocations: 381.3 kB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-05/0.3485, allocations: 93.11 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.3485, allocations: 8 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.3486, allocations: 7.984 kB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.3487, allocations: 11.94 kB / 439.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.3487, allocations: 11.92 kB / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.379e-05/0.3488, allocations: 95.27 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3488, allocations: 0 / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.3491, allocations: 27.94 kB / 439.9 MB, free: 15.02 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 (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 0.0001271/0.3492, allocations: 103.2 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000345/0.3496, allocations: 115.8 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3496, allocations: 0.9375 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.3497, allocations: 31.91 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004933/0.3502, allocations: 64.78 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007788/0.351, allocations: 415 kB / 440.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3513, allocations: 0.7201 MB / 441.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.621e-05/0.3514, allocations: 23.38 kB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3514, allocations: 0 / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of Templates: time 0.003516/0.3549, allocations: 1.539 MB / 442.9 MB, free: 11.96 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.300011793617159]