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.002098/0.002098, allocations: 105.1 kB / 21.22 MB, free: 0.5117 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.002837/0.002837, allocations: 213.9 kB / 24.54 MB, free: 3.875 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.563/1.563, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.002089/0.002089, allocations: 64.77 kB / 379 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2764, allocations: 53.37 MB / 432.4 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003862/0.2803, allocations: 2.044 MB / 434.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2815, allocations: 0.5375 MB / 435 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2816, allocations: 0 / 435 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.2817, allocations: 19.8 kB / 435 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.2818, allocations: 27.78 kB / 435 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.2822, allocations: 67.73 kB / 435.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.2824, allocations: 119.6 kB / 435.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.2825, allocations: 37.61 kB / 435.2 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.643e-05/0.2826, allocations: 51.78 kB / 435.3 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.2827, allocations: 55.77 kB / 435.3 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/0.2828, allocations: 8 kB / 435.4 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.409e-05/0.2828, allocations: 12 kB / 435.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.07e-05/0.2828, allocations: 23.92 kB / 435.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.2829, allocations: 67.66 kB / 435.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.2832, allocations: 125.1 kB / 435.6 MB, free: 3.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.2832, allocations: 7.938 kB / 435.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2832, allocations: 0 / 435.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2832, allocations: 0 / 435.6 MB, free: 3.727 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.0008255/0.284, allocations: 349.8 kB / 435.9 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.284, allocations: 8.031 kB / 435.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.2841, allocations: 16.84 kB / 435.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.2844, allocations: 150.3 kB / 436.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.2844, allocations: 12.38 kB / 436.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.2845, allocations: 20.31 kB / 436.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005554/0.285, allocations: 246 kB / 436.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.2851, allocations: 4 kB / 436.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.2851, allocations: 4 kB / 436.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.2851, allocations: 4 kB / 436.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002636/0.2854, allocations: 86.67 kB / 436.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007122/0.2861, allocations: 0.5349 MB / 437 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.2864, allocations: 143.9 kB / 437.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.2866, allocations: 70.62 kB / 437.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.2866, allocations: 4 kB / 437.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.2866, allocations: 30.56 kB / 437.2 MB, free: 1.891 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.2866, allocations: 4 kB / 437.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006547/0.2873, allocations: 177.4 kB / 437.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.697e-05/0.2874, allocations: 114.8 kB / 437.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.2875, allocations: 126.1 kB / 437.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.2875, allocations: 33.7 kB / 437.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.2876, allocations: 120 kB / 437.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.2877, allocations: 31.77 kB / 437.8 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.2877, allocations: 38.08 kB / 437.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2879, allocations: 318.8 kB / 438.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.288, allocations: 35.97 kB / 438.2 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/0.2882, allocations: 128.9 kB / 438.3 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003551/0.2886, allocations: 184.5 kB / 438.5 MB, free: 456 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2886, allocations: 4 kB / 438.5 MB, free: 452 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004036/0.289, allocations: 193.2 kB / 438.7 MB, free: 252 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.289, allocations: 4 kB / 438.7 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.289, allocations: 4 kB / 438.7 MB, free: 244 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.998e-05/0.2891, allocations: 7.938 kB / 438.7 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.2893, allocations: 44.36 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.2893, allocations: 7.984 kB / 438.8 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2894, allocations: 23.89 kB / 438.8 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.2894, allocations: 8 kB / 438.8 MB, free: 152 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.0001461/0.2896, allocations: 125.8 kB / 438.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.2898, allocations: 81.66 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.2898, allocations: 24.64 kB / 439 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2898, allocations: 8.172 kB / 439.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.2898, allocations: 0 / 439.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2898, allocations: 7.984 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.2902, allocations: 176.6 kB / 439.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2902, allocations: 4 kB / 439.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.2904, allocations: 27.98 kB / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2904, allocations: 0 / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.2904, allocations: 15.92 kB / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2904, allocations: 0 / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/0.2904, allocations: 4 kB / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007209/0.2911, allocations: 367.5 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.206e-05/0.2912, allocations: 7.984 kB / 439.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.2912, allocations: 11.94 kB / 439.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2913, allocations: 7.984 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.2914, allocations: 3.984 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.2914, allocations: 12.06 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.626e-05/0.2915, allocations: 101.6 kB / 439.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2915, allocations: 0 / 439.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2918, allocations: 27.95 kB / 439.8 MB, free: 15.07 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.0001671/0.292, allocations: 107.2 kB / 439.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.2924, allocations: 116.4 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2924, allocations: 3.938 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.2925, allocations: 27.97 kB / 440.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.293, allocations: 47.94 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009215/0.294, allocations: 401.2 kB / 440.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004827/0.2944, allocations: 0.7123 MB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.369e-05/0.2945, allocations: 20.58 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.2945, allocations: 11.44 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2945, allocations: 4 kB / 441.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of Templates: time 0.005164/0.2997, allocations: 1.273 MB / 442.5 MB, free: 12.34 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/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_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: 4.65107287466526]