Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 194.3 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007459/0.0007459, allocations: 105.4 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002294, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.232, allocations: 51.3 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.001888/0.234, allocations: 1.698 MB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.2347, allocations: 0.5737 MB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.2349, allocations: 4.688 kB / 409.8 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.235, allocations: 11.92 kB / 409.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.2351, allocations: 24.97 kB / 409.8 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.2354, allocations: 59.88 kB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.2355, allocations: 113.4 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.2357, allocations: 46.77 kB / 410 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.483e-05/0.2357, allocations: 43.78 kB / 410.1 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.2358, allocations: 48.7 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.2358, allocations: 4 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.908e-05/0.2358, allocations: 4 kB / 410.1 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.98e-05/0.2359, allocations: 25.39 kB / 410.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.853e-05/0.2359, allocations: 49.64 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000101/0.236, allocations: 100.8 kB / 410.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2361, allocations: 0 / 410.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2361, allocations: 3.25 kB / 410.3 MB, free: 25.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.2361, allocations: 0 / 410.3 MB, free: 25.01 MB / 298.7 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.0004727/0.2365, allocations: 434.7 kB / 410.7 MB, free: 24.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.2366, allocations: 8.031 kB / 410.7 MB, free: 24.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.2366, allocations: 27.75 kB / 410.7 MB, free: 24.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.2368, allocations: 208.3 kB / 411 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2368, allocations: 12 kB / 411 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.2369, allocations: 23.89 kB / 411 MB, free: 24.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.2373, allocations: 250.6 kB / 411.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.2373, allocations: 4 kB / 411.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2374, allocations: 0 / 411.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2374, allocations: 4 kB / 411.2 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.2376, allocations: 104.5 kB / 411.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004836/0.2381, allocations: 0.596 MB / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.2384, allocations: 151.7 kB / 412.1 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.2386, allocations: 86.75 kB / 412.2 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.2386, allocations: 4 kB / 412.2 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.2386, allocations: 34.56 kB / 412.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.2386, allocations: 0 / 412.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004585/0.2391, allocations: 205.4 kB / 412.4 MB, free: 22.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.2391, allocations: 114.9 kB / 412.5 MB, free: 22.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.028e-05/0.2392, allocations: 158.2 kB / 412.7 MB, free: 22.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.2392, allocations: 29.7 kB / 412.7 MB, free: 22.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.2393, allocations: 116.4 kB / 412.8 MB, free: 22.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.2393, allocations: 27.64 kB / 412.8 MB, free: 22.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.2393, allocations: 4 kB / 412.8 MB, free: 22.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.24e-05/0.2394, allocations: 322.8 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.2395, allocations: 48.28 kB / 413.2 MB, free: 21.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.2396, allocations: 140.7 kB / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.2397, allocations: 71.89 kB / 413.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2397, allocations: 384 / 413.4 MB, free: 21.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003099/0.2401, allocations: 197.2 kB / 413.6 MB, free: 21.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2401, allocations: 8.469 kB / 413.6 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2401, allocations: 12 kB / 413.6 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2401, allocations: 11.89 kB / 413.6 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.2403, allocations: 47.91 kB / 413.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2403, allocations: 4 kB / 413.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.765e-05/0.2404, allocations: 27.83 kB / 413.7 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.2404, allocations: 8 kB / 413.7 MB, free: 21.22 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.305e-05/0.2405, allocations: 137.8 kB / 413.9 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.2406, allocations: 93.42 kB / 414 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.78e-05/0.2407, allocations: 20.72 kB / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2407, allocations: 0 / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2407, allocations: 3.953 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2407, allocations: 4 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.2409, allocations: 217.5 kB / 414.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2409, allocations: 0 / 414.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001672/0.2411, allocations: 39.91 kB / 414.2 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.2411, allocations: 8 kB / 414.2 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.2411, allocations: 4 kB / 414.2 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2411, allocations: 4 kB / 414.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2411, allocations: 0 / 414.2 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004287/0.2416, allocations: 402.4 kB / 414.6 MB, free: 20.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.2416, allocations: 108.9 kB / 414.7 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.2417, allocations: 4 kB / 414.8 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.2418, allocations: 11.98 kB / 414.8 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.2418, allocations: 8.062 kB / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.2419, allocations: 7.953 kB / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.01e-05/0.2419, allocations: 116.1 kB / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2419, allocations: 0 / 414.9 MB, free: 19.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.2422, allocations: 28 kB / 414.9 MB, free: 19.93 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.862e-05/0.2423, allocations: 103.8 kB / 415 MB, free: 19.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.2426, allocations: 135.7 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2426, allocations: 3.938 kB / 415.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.14e-05/0.2427, allocations: 40.84 kB / 415.2 MB, free: 19.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.2432, allocations: 54.78 kB / 415.3 MB, free: 19.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005816/0.2438, allocations: 0.5385 MB / 415.8 MB, free: 19.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.2439, allocations: 0.7245 MB / 416.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/0.2439, allocations: 11.44 kB / 416.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.244, allocations: 4 kB / 416.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of Templates: time 0.002441/0.2464, allocations: 1.584 MB / 418.1 MB, free: 16.67 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches