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.008334/0.008334, allocations: 110.1 kB / 21.98 MB, free: 5.184 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.001923/0.001923, allocations: 220.3 kB / 25.29 MB, free: 3.203 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.499/1.499, allocations: 230.6 MB / 259 MB, free: 8.016 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.00191/0.00191, allocations: 63.91 kB / 379.8 MB, free: 2.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2566, allocations: 53.38 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003581/0.2602, allocations: 2.047 MB / 435.2 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009661/0.2611, allocations: 0.5375 MB / 435.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.288e-05/0.2612, allocations: 4 kB / 435.7 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.2613, allocations: 15.8 kB / 435.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.217e-05/0.2614, allocations: 31.72 kB / 435.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.2617, allocations: 55.5 kB / 435.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.2619, allocations: 127.6 kB / 436 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.262, allocations: 44.42 kB / 436 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.612e-05/0.2621, allocations: 47.8 kB / 436.1 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.005e-05/0.2622, allocations: 55.75 kB / 436.1 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.2622, allocations: 12 kB / 436.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.944e-05/0.2622, allocations: 8 kB / 436.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.884e-05/0.2623, allocations: 23.92 kB / 436.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.643e-05/0.2623, allocations: 59.67 kB / 436.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.2626, allocations: 132.6 kB / 436.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2626, allocations: 0 / 436.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2626, allocations: 0 / 436.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.2626, allocations: 4 kB / 436.3 MB, free: 3.785 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.0006011/0.2632, allocations: 349.8 kB / 436.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.2632, allocations: 8.031 kB / 436.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.2632, allocations: 16.84 kB / 436.7 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.2635, allocations: 154.2 kB / 436.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.2635, allocations: 8.375 kB / 436.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.835e-05/0.2635, allocations: 20.33 kB / 436.9 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.264, allocations: 243.7 kB / 437.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.264, allocations: 0 / 437.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.264, allocations: 11.94 kB / 437.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.2641, allocations: 4 kB / 437.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.2643, allocations: 87.86 kB / 437.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000651/0.2649, allocations: 0.5388 MB / 437.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.2652, allocations: 131.9 kB / 437.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2654, allocations: 78.62 kB / 438 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2654, allocations: 0 / 438 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.2654, allocations: 38.5 kB / 438 MB, free: 1.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 9.91e-07/0.2654, allocations: 0 / 438 MB, free: 1.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000507/0.2659, allocations: 181.4 kB / 438.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.976e-05/0.266, allocations: 110.8 kB / 438.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.2661, allocations: 126.1 kB / 438.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.2662, allocations: 29.7 kB / 438.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.033e-05/0.2662, allocations: 115.8 kB / 438.6 MB, free: 1.332 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.845e-05/0.2663, allocations: 27.78 kB / 438.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.2663, allocations: 37.7 kB / 438.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2665, allocations: 327 kB / 438.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.2666, allocations: 35.97 kB / 439 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.2668, allocations: 128.8 kB / 439.1 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002984/0.2671, allocations: 180.8 kB / 439.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2671, allocations: 0 / 439.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003826/0.2674, allocations: 193.9 kB / 439.5 MB, free: 316 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2675, allocations: 8 kB / 439.5 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2675, allocations: 4 kB / 439.5 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.2675, allocations: 7.938 kB / 439.5 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2677, allocations: 43.86 kB / 439.5 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.2677, allocations: 7.984 kB / 439.5 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.2678, allocations: 19.89 kB / 439.6 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.2678, allocations: 8 kB / 439.6 MB, free: 216 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.0001111/0.2679, allocations: 129.9 kB / 439.7 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.2681, allocations: 85.62 kB / 439.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.224e-05/0.2681, allocations: 20.59 kB / 439.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2681, allocations: 4 kB / 439.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2681, allocations: 0 / 439.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.2681, allocations: 4 kB / 439.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.2684, allocations: 180.6 kB / 440 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2684, allocations: 3.938 kB / 440 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.2686, allocations: 31.92 kB / 440 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2686, allocations: 8 kB / 440 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.2686, allocations: 11.92 kB / 440 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2686, allocations: 4 kB / 440 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.2686, allocations: 4 kB / 440 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005252/0.2691, allocations: 367.6 kB / 440.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.2691, allocations: 7.953 kB / 440.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.2692, allocations: 7.938 kB / 440.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.2693, allocations: 7.984 kB / 440.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.2693, allocations: 11.92 kB / 440.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2693, allocations: 8 kB / 440.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.766e-05/0.2694, allocations: 102.2 kB / 440.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2694, allocations: 0 / 440.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.2697, allocations: 32.02 kB / 440.6 MB, free: 15.12 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.0001055/0.2698, allocations: 99.25 kB / 440.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003041/0.2701, allocations: 112.6 kB / 440.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2701, allocations: 0 / 440.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.955e-05/0.2702, allocations: 36.03 kB / 440.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.2707, allocations: 52.25 kB / 440.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008056/0.2715, allocations: 416.2 kB / 441.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.2719, allocations: 0.7123 MB / 442 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.609e-05/0.2719, allocations: 19.42 kB / 442 MB, free: 13.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2719, allocations: 0 / 442 MB, free: 13.62 MB / 350.1 MB Notification: Performance of Templates: time 0.003423/0.2753, allocations: 1.51 MB / 443.5 MB, free: 12.12 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 6.967981332913041]