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.001018/0.001018, allocations: 197.2 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 226.6 MB / 244.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007274/0.0007273, allocations: 105.3 kB / 296.8 MB, free: 6.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002435/0.0002436, allocations: 11.98 kB / 356.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1998, allocations: 51.29 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00168/0.2015, allocations: 1.7 MB / 409.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007456/0.2023, allocations: 0.556 MB / 410.3 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.2024, allocations: 9.281 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.23e-05/0.2025, allocations: 7.922 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.2027, allocations: 28.31 kB / 410.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.2029, allocations: 52.64 kB / 410.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.2031, allocations: 119.6 kB / 410.5 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.2032, allocations: 52.3 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.068e-05/0.2033, allocations: 40.89 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.04e-05/0.2033, allocations: 43.78 kB / 410.6 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.2034, allocations: 8 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.696e-05/0.2034, allocations: 5.031 kB / 410.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.001e-05/0.2034, allocations: 27.83 kB / 410.7 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.691e-05/0.2035, allocations: 85.38 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.2036, allocations: 93.53 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2036, allocations: 0 / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2036, allocations: 0.875 kB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.2036, allocations: 0 / 410.9 MB, free: 24.84 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.0004559/0.2041, allocations: 443.1 kB / 411.3 MB, free: 24.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.2041, allocations: 13.28 kB / 411.3 MB, free: 24.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.2042, allocations: 20.69 kB / 411.3 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.2043, allocations: 217 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.2044, allocations: 12 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.2044, allocations: 16.28 kB / 411.6 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000408/0.2048, allocations: 263.6 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.2048, allocations: 3.938 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2049, allocations: 8 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.2049, allocations: 0 / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.2051, allocations: 95.88 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004668/0.2056, allocations: 0.596 MB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003014/0.2059, allocations: 155.8 kB / 412.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.206, allocations: 78.64 kB / 412.7 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.2061, allocations: 11.98 kB / 412.8 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.2061, allocations: 46.48 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.2061, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004731/0.2066, allocations: 205.2 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.2067, allocations: 110.8 kB / 413.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.2068, allocations: 154.2 kB / 413.3 MB, free: 22.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.059e-05/0.2068, allocations: 29.7 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.282e-05/0.2068, allocations: 116.5 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.2069, allocations: 31.64 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-06/0.2069, allocations: 4 kB / 413.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.2069, allocations: 322.8 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.207, allocations: 43.91 kB / 413.8 MB, free: 21.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.2072, allocations: 145 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002399/0.2074, allocations: 201.5 kB / 414.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2074, allocations: 0 / 414.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003079/0.2077, allocations: 201.2 kB / 414.3 MB, free: 20.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.2078, allocations: 12.36 kB / 414.3 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.2078, allocations: 4 kB / 414.3 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.2078, allocations: 7.938 kB / 414.4 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.208, allocations: 44.45 kB / 414.4 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.208, allocations: 15.86 kB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.572e-05/0.2081, allocations: 23.84 kB / 414.4 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.2081, allocations: 8 kB / 414.4 MB, free: 20.87 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 8.071e-05/0.2082, allocations: 141.8 kB / 414.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2083, allocations: 93.38 kB / 414.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.019e-05/0.2084, allocations: 16.72 kB / 414.7 MB, free: 20.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2084, allocations: 8 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2084, allocations: 0 / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.2084, allocations: 7.984 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002033/0.2086, allocations: 213.5 kB / 414.9 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2087, allocations: 0 / 414.9 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.2088, allocations: 35.97 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2088, allocations: 4 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.2089, allocations: 4 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.2089, allocations: 4 kB / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2089, allocations: 0 / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.2093, allocations: 407.2 kB / 415.4 MB, free: 19.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.2094, allocations: 100.9 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.2094, allocations: 4 kB / 415.5 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.2096, allocations: 11.98 kB / 415.5 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.2096, allocations: 4 kB / 415.5 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.2096, allocations: 7.984 kB / 415.5 MB, free: 19.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.991e-05/0.2097, allocations: 120.2 kB / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2097, allocations: 0 / 415.6 MB, free: 19.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002977/0.21, allocations: 28 kB / 415.6 MB, free: 19.57 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 9.687e-05/0.2101, allocations: 107.1 kB / 415.7 MB, free: 19.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002898/0.2104, allocations: 132.3 kB / 415.9 MB, free: 19.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2104, allocations: 3.938 kB / 415.9 MB, free: 19.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.092e-05/0.2105, allocations: 31.97 kB / 415.9 MB, free: 19.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.211, allocations: 64.23 kB / 416 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006578/0.2117, allocations: 0.5421 MB / 416.5 MB, free: 18.65 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.2118, allocations: 0.7243 MB / 417.2 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.977e-05/0.2119, allocations: 11.44 kB / 417.2 MB, free: 17.89 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2119, allocations: 4 kB / 417.2 MB, free: 17.89 MB / 298.7 MB Notification: Performance of Templates: time 0.002558/0.2145, allocations: 1.585 MB / 418.8 MB, free: 16.31 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