Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001229, allocations: 114.3 kB / 18.45 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 204 kB / 19.41 MB, free: 3.625 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.371/1.371, allocations: 227.7 MB / 247.9 MB, free: 10.17 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.001852/0.001852, allocations: 59.91 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2245, allocations: 50.55 MB / 410.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003249/0.2277, allocations: 2.053 MB / 412.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2287, allocations: 0.6038 MB / 412.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.894e-05/0.2288, allocations: 7.938 kB / 412.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.229, allocations: 15.8 kB / 412.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.2291, allocations: 31.72 kB / 412.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.2294, allocations: 67.8 kB / 413 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.2296, allocations: 127.6 kB / 413.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.2297, allocations: 49.84 kB / 413.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.734e-05/0.2298, allocations: 51.78 kB / 413.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.414e-05/0.2299, allocations: 59.7 kB / 413.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.2299, allocations: 15.94 kB / 413.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.381e-05/0.2299, allocations: 12 kB / 413.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.564e-05/0.23, allocations: 31.84 kB / 413.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.488e-05/0.23, allocations: 71.59 kB / 413.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.2302, allocations: 139.4 kB / 413.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2302, allocations: 0 / 413.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2302, allocations: 0 / 413.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2302, allocations: 0 / 413.5 MB, free: 14.25 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006417/0.2309, allocations: 458.7 kB / 414 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.2309, allocations: 8.031 kB / 414 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.965e-05/0.231, allocations: 20.8 kB / 414 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.2312, allocations: 224 kB / 414.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.2312, allocations: 8.375 kB / 414.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.2313, allocations: 20.3 kB / 414.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.2318, allocations: 250.9 kB / 414.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2318, allocations: 0 / 414.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.2318, allocations: 7.984 kB / 414.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2318, allocations: 4 kB / 414.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.2321, allocations: 91.88 kB / 414.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.2327, allocations: 0.5921 MB / 415.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.2331, allocations: 147.7 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2332, allocations: 66.77 kB / 415.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.2333, allocations: 15.92 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.2333, allocations: 34.56 kB / 415.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2333, allocations: 3.938 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005253/0.2338, allocations: 193.5 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.2339, allocations: 110.8 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.234, allocations: 159 kB / 415.9 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.2341, allocations: 29.7 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.2341, allocations: 116.5 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.2342, allocations: 23.84 kB / 416.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/0.2342, allocations: 37.7 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.2344, allocations: 326.8 kB / 416.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.2345, allocations: 31.97 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.2347, allocations: 147.3 kB / 416.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003106/0.235, allocations: 193.5 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.235, allocations: 4 kB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000387/0.2354, allocations: 201.5 kB / 417 MB, free: 10.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.2354, allocations: 8.062 kB / 417 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2354, allocations: 4 kB / 417 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2354, allocations: 4 kB / 417 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.2356, allocations: 51.91 kB / 417 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.2356, allocations: 4 kB / 417 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.2357, allocations: 15.94 kB / 417.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2357, allocations: 16 kB / 417.1 MB, free: 10.29 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.00012/0.2358, allocations: 134.5 kB / 417.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.236, allocations: 97.53 kB / 417.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.236, allocations: 20.7 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.236, allocations: 4 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.236, allocations: 480 / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.236, allocations: 0 / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.2363, allocations: 213.5 kB / 417.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2363, allocations: 0 / 417.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.2365, allocations: 35.98 kB / 417.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2365, allocations: 7.938 kB / 417.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.2365, allocations: 0 / 417.6 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2365, allocations: 7.938 kB / 417.6 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2365, allocations: 11.92 kB / 417.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.2371, allocations: 379.4 kB / 418 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.771e-05/0.2372, allocations: 113 kB / 418.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.2372, allocations: 4 kB / 418.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2373, allocations: 4 kB / 418.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.2374, allocations: 7.984 kB / 418.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2374, allocations: 8 kB / 418.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.135e-05/0.2375, allocations: 119.1 kB / 418.2 MB, free: 9.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2375, allocations: 4 kB / 418.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000317/0.2378, allocations: 24 kB / 418.2 MB, free: 9.008 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 (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 9.764e-05/0.2379, allocations: 110.2 kB / 418.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.2382, allocations: 115.7 kB / 418.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2382, allocations: 0 / 418.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.882e-05/0.2383, allocations: 28.86 kB / 418.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/0.2388, allocations: 64 kB / 418.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006933/0.2395, allocations: 429.5 kB / 419 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.2398, allocations: 0.724 MB / 419.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.383e-05/0.2399, allocations: 9.422 kB / 419.7 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.2399, allocations: 19.44 kB / 419.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2399, allocations: 0 / 419.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of Templates: time 0.004242/0.2442, allocations: 1.372 MB / 421.1 MB, free: 6.137 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches