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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001844/0.001844, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 230.4 MB / 251.1 MB, free: 8.422 MB / 206.1 MB 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.001882/0.001882, allocations: 67.83 kB / 368.9 MB, free: 6.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2759, allocations: 53.31 MB / 422.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004095/0.28, allocations: 2.027 MB / 424.3 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2811, allocations: 0.5727 MB / 424.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.2812, allocations: 0 / 424.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.2814, allocations: 19.8 kB / 424.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.2815, allocations: 35.72 kB / 424.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.2818, allocations: 51.88 kB / 424.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.282, allocations: 123.6 kB / 425.1 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.2822, allocations: 49.38 kB / 425.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.2823, allocations: 55.72 kB / 425.2 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.2824, allocations: 51.77 kB / 425.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.2824, allocations: 12 kB / 425.2 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.01e-05/0.2825, allocations: 8 kB / 425.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.46e-05/0.2825, allocations: 31.84 kB / 425.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.803e-05/0.2826, allocations: 55.73 kB / 425.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.2828, allocations: 127 kB / 425.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2828, allocations: 3.938 kB / 425.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2828, allocations: 3.938 kB / 425.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2828, allocations: 0 / 425.5 MB, free: 4.605 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.0007583/0.2836, allocations: 438.9 kB / 425.9 MB, free: 4.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.2836, allocations: 8.031 kB / 425.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.2837, allocations: 16.84 kB / 425.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.284, allocations: 216 kB / 426.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.284, allocations: 8.375 kB / 426.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.784e-05/0.2841, allocations: 16.38 kB / 426.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005257/0.2846, allocations: 246.9 kB / 426.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2846, allocations: 4 kB / 426.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.2846, allocations: 8 kB / 426.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2846, allocations: 4 kB / 426.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.2849, allocations: 83.86 kB / 426.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007276/0.2856, allocations: 0.5883 MB / 427.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.286, allocations: 143.7 kB / 427.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.2861, allocations: 78.75 kB / 427.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.2862, allocations: 7.984 kB / 427.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.2862, allocations: 34.56 kB / 427.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.2862, allocations: 0 / 427.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.00053/0.2867, allocations: 181.4 kB / 427.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.512e-05/0.2868, allocations: 114.9 kB / 427.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.287, allocations: 133.2 kB / 427.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.287, allocations: 25.7 kB / 427.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.762e-05/0.2871, allocations: 116.1 kB / 427.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.2871, allocations: 31.78 kB / 427.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.347e-05/0.2871, allocations: 29.7 kB / 427.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2873, allocations: 326.8 kB / 428.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2874, allocations: 40.34 kB / 428.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.2876, allocations: 129.7 kB / 428.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.2879, allocations: 193.5 kB / 428.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.2879, allocations: 0 / 428.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000383/0.2883, allocations: 213.3 kB / 428.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.2883, allocations: 8 kB / 428.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2883, allocations: 4 kB / 428.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2883, allocations: 4 kB / 428.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.2885, allocations: 51.91 kB / 428.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.2885, allocations: 4 kB / 428.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.2886, allocations: 15.89 kB / 428.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.2886, allocations: 15.98 kB / 428.9 MB, free: 0.7305 MB / 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.0001362/0.2888, allocations: 137.8 kB / 429.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.2889, allocations: 85.58 kB / 429.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.116e-05/0.289, allocations: 16.72 kB / 429.2 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.289, allocations: 4 kB / 429.2 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.289, allocations: 0 / 429.2 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.289, allocations: 3.984 kB / 429.2 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.2893, allocations: 205.5 kB / 429.4 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2893, allocations: 4 kB / 429.4 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.2895, allocations: 39.92 kB / 429.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2895, allocations: 4 kB / 429.4 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2895, allocations: 4 kB / 429.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2895, allocations: 4 kB / 429.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2895, allocations: 0 / 429.4 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.2901, allocations: 383.5 kB / 429.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.2902, allocations: 92.95 kB / 429.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/0.2902, allocations: 4 kB / 429.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.2903, allocations: 7.984 kB / 429.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/0.2904, allocations: 7.938 kB / 429.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.2904, allocations: 12.22 kB / 429.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.947e-05/0.2905, allocations: 95.27 kB / 430 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2905, allocations: 0 / 430 MB, free: 15.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00032/0.2908, allocations: 24 kB / 430 MB, free: 15.51 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.0001277/0.2909, allocations: 111.3 kB / 430.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003235/0.2912, allocations: 114.3 kB / 430.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2912, allocations: 4.938 kB / 430.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.2913, allocations: 36 kB / 430.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.2918, allocations: 51.88 kB / 430.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007735/0.2926, allocations: 389.5 kB / 430.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.293, allocations: 0.724 MB / 431.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.439e-05/0.2931, allocations: 13.03 kB / 431.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.2931, allocations: 15.42 kB / 431.5 MB, free: 14 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2931, allocations: 0 / 431.5 MB, free: 14 MB / 350.1 MB Notification: Performance of Templates: time 0.004344/0.2974, allocations: 1.27 MB / 432.8 MB, free: 12.77 MB / 350.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] Reference file matches