Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001823/0.001823, allocations: 190.6 kB / 17.37 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007509/0.000751, allocations: 103.2 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002264, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1861, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.001953/0.1881, allocations: 2.303 MB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008002/0.189, allocations: 0.6533 MB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/0.1891, allocations: 4 kB / 411 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.1892, allocations: 39.62 kB / 411 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.1893, allocations: 68.2 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.1895, allocations: 77.06 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.1897, allocations: 322.6 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.1899, allocations: 78.5 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.1901, allocations: 119.6 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.1902, allocations: 150.3 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.1903, allocations: 16 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.129e-05/0.1903, allocations: 20 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.4e-05/0.1904, allocations: 47.81 kB / 411.9 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.968e-05/0.1905, allocations: 157 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.1906, allocations: 244.3 kB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1906, allocations: 0 / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1907, allocations: 4 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1907, allocations: 0 / 412.3 MB, free: 23.42 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001182/0.1918, allocations: 0.6121 MB / 412.9 MB, free: 22.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.1919, allocations: 16.03 kB / 412.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.192, allocations: 36.64 kB / 413 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.1923, allocations: 260.7 kB / 413.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.1923, allocations: 12.81 kB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.1923, allocations: 24.38 kB / 413.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005445/0.1929, allocations: 314.9 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1929, allocations: 0 / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/0.1929, allocations: 8 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1929, allocations: 4 kB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006752/0.1936, allocations: 285.6 kB / 413.9 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.1949, allocations: 1.069 MB / 414.9 MB, free: 20.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.1968, allocations: 482.3 kB / 415.4 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.1971, allocations: 160.7 kB / 415.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.1972, allocations: 4 kB / 415.6 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.1972, allocations: 34.56 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.1972, allocations: 0 / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004611/0.2018, allocations: 1.131 MB / 416.7 MB, free: 18.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.461e-05/0.2018, allocations: 59.39 kB / 416.8 MB, free: 18.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.202, allocations: 208.2 kB / 417 MB, free: 18.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.2021, allocations: 29.7 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.2021, allocations: 164.1 kB / 417.2 MB, free: 18.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.2022, allocations: 43.3 kB / 417.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.654e-05/0.2022, allocations: 4 kB / 417.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.251e-05/0.2022, allocations: 334.8 kB / 417.6 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.2025, allocations: 111.9 kB / 417.7 MB, free: 17.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.2028, allocations: 133.7 kB / 417.8 MB, free: 17.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000588/0.2034, allocations: 244.4 kB / 418 MB, free: 17.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2034, allocations: 3.938 kB / 418 MB, free: 17.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002622/0.2061, allocations: 0.6929 MB / 418.7 MB, free: 16.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2061, allocations: 8 kB / 418.7 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2061, allocations: 3.984 kB / 418.7 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006416/0.2068, allocations: 236.7 kB / 419 MB, free: 16.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.2069, allocations: 39.91 kB / 419 MB, free: 16.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/0.2128, allocations: 2.599 MB / 421.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002702/0.2131, allocations: 51.84 kB / 421.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.2131, allocations: 8 kB / 421.7 MB, free: 13.62 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.2132, allocations: 133.8 kB / 421.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.2133, allocations: 23.66 kB / 421.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.043e-05/0.2133, allocations: 25.52 kB / 421.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2133, allocations: 4 kB / 421.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.2133, allocations: 0 / 421.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2133, allocations: 0 / 421.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.2136, allocations: 329.4 kB / 422.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2136, allocations: 0 / 422.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.2138, allocations: 35.91 kB / 422.2 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005804/0.2144, allocations: 228.7 kB / 422.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.2144, allocations: 8 kB / 422.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005585/0.22, allocations: 2.587 MB / 425 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.22, allocations: 0 / 425 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003002/0.223, allocations: 0.9235 MB / 426 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.2231, allocations: 101 kB / 426.1 MB, free: 9.008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.2231, allocations: 7.938 kB / 426.1 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.2234, allocations: 35.97 kB / 426.1 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.2235, allocations: 7.984 kB / 426.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2235, allocations: 8 kB / 426.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.715e-05/0.2236, allocations: 161.6 kB / 426.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2236, allocations: 0 / 426.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004038/0.224, allocations: 79.84 kB / 426.3 MB, free: 8.715 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001038/0.2241, allocations: 103.2 kB / 426.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.2255, allocations: 474.4 kB / 426.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2255, allocations: 4 kB / 426.9 MB, free: 8.125 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.2265, allocations: 354.5 kB / 427.3 MB, free: 7.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.2268, allocations: 45.16 kB / 427.3 MB, free: 7.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2279, allocations: 0.6931 MB / 428 MB, free: 7.008 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.228, allocations: 0.744 MB / 428.7 MB, free: 6.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.573e-05/0.2281, allocations: 15.44 kB / 428.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2281, allocations: 0 / 428.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of Templates: time 0.004372/0.2324, allocations: 4.042 MB / 432.8 MB, free: 2.188 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches