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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 117.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 216.7 kB / 19.41 MB, free: 3.664 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.385/1.385, allocations: 227.7 MB / 247.9 MB, free: 10.19 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.001873/0.001873, allocations: 67.89 kB / 359.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2163, allocations: 50.54 MB / 410.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003255/0.2195, allocations: 2.019 MB / 412.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009322/0.2205, allocations: 0.5376 MB / 412.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.2206, allocations: 4 kB / 412.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.2207, allocations: 19.8 kB / 412.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.591e-05/0.2207, allocations: 23.8 kB / 412.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.221, allocations: 51.88 kB / 412.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2212, allocations: 127.5 kB / 413 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.2213, allocations: 48.64 kB / 413 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.728e-05/0.2214, allocations: 51.73 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.594e-05/0.2215, allocations: 55.75 kB / 413.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2215, allocations: 12 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.549e-05/0.2215, allocations: 8 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.063e-05/0.2216, allocations: 23.92 kB / 413.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.769e-05/0.2216, allocations: 59.67 kB / 413.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.2218, allocations: 131.3 kB / 413.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2218, allocations: 3.938 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2218, allocations: 0 / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.2218, allocations: 0 / 413.4 MB, free: 14.29 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.0006257/0.2225, allocations: 423 kB / 413.8 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2225, allocations: 12.02 kB / 413.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.756e-05/0.2225, allocations: 16.84 kB / 413.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.2228, allocations: 204.1 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2228, allocations: 12.38 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.2228, allocations: 16.33 kB / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.2233, allocations: 246.9 kB / 414.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2233, allocations: 0 / 414.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.2234, allocations: 4 kB / 414.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.2234, allocations: 7.938 kB / 414.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/0.2236, allocations: 87.86 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006811/0.2243, allocations: 0.5883 MB / 414.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.2246, allocations: 139.9 kB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.2248, allocations: 70.62 kB / 415.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.2248, allocations: 7.984 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.2248, allocations: 38.56 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2248, allocations: 4 kB / 415.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005664/0.2254, allocations: 173.4 kB / 415.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.2255, allocations: 114.8 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.2256, allocations: 130.1 kB / 415.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.2256, allocations: 25.83 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2257, allocations: 119.8 kB / 415.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.764e-05/0.2258, allocations: 27.78 kB / 415.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.687e-05/0.2258, allocations: 37.7 kB / 415.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.226, allocations: 322.8 kB / 416.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.2261, allocations: 35.97 kB / 416.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2263, allocations: 124.9 kB / 416.3 MB, free: 11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.2266, allocations: 180.7 kB / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2266, allocations: 0 / 416.5 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003846/0.227, allocations: 193.2 kB / 416.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.227, allocations: 11.94 kB / 416.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.227, allocations: 4 kB / 416.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.227, allocations: 7.938 kB / 416.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.2272, allocations: 40.42 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.2272, allocations: 15.92 kB / 416.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2273, allocations: 16.27 kB / 416.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.2273, allocations: 12 kB / 416.8 MB, free: 10.48 MB / 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.0001137/0.2274, allocations: 125.8 kB / 416.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.2276, allocations: 81.58 kB / 417 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.2276, allocations: 24.58 kB / 417 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.2276, allocations: 4 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2276, allocations: 3.938 kB / 417 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2277, allocations: 8 kB / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.2279, allocations: 209.5 kB / 417.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.228, allocations: 4 kB / 417.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.2281, allocations: 27.98 kB / 417.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2281, allocations: 4 kB / 417.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.2281, allocations: 7.922 kB / 417.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2281, allocations: 0 / 417.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2281, allocations: 4 kB / 417.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.2287, allocations: 375 kB / 417.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.2288, allocations: 89.05 kB / 417.7 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.2288, allocations: 7.938 kB / 417.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.2289, allocations: 11.98 kB / 417.7 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.229, allocations: 12.05 kB / 417.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.229, allocations: 4 kB / 417.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.992e-05/0.2291, allocations: 106 kB / 417.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2291, allocations: 0 / 417.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.2294, allocations: 24 kB / 417.9 MB, free: 9.262 MB / 334.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.0001198/0.2295, allocations: 99.19 kB / 418 MB, free: 9.156 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003386/0.2298, allocations: 112 kB / 418.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2298, allocations: 4 kB / 418.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.2299, allocations: 32.23 kB / 418.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.2304, allocations: 44.05 kB / 418.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007251/0.2311, allocations: 394.4 kB / 418.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.2315, allocations: 0.7084 MB / 419.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.662e-05/0.2315, allocations: 16.59 kB / 419.3 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.69e-05/0.2316, allocations: 19.38 kB / 419.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2316, allocations: 0 / 419.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of Templates: time 0.004176/0.2357, allocations: 1.199 MB / 420.5 MB, free: 6.629 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) 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) Reference file matches