Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 102.8 kB / 16.92 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001943/0.001943, allocations: 191.3 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 59.19 kB / 300.6 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1808, allocations: 49.44 MB / 350 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.006709/0.1876, allocations: 2.697 MB / 352.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.1893, allocations: 0.67 MB / 353.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.1894, allocations: 7.938 kB / 353.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.1896, allocations: 39.58 kB / 353.5 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003024/0.19, allocations: 79.27 kB / 353.5 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.1904, allocations: 95.84 kB / 353.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/0.1909, allocations: 354.6 kB / 354 MB, free: 476 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.1912, allocations: 96.69 kB / 354.1 MB, free: 376 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.1914, allocations: 139.5 kB / 354.2 MB, free: 236 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.1917, allocations: 163.4 kB / 354.4 MB, free: 72 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.299e-05/0.1918, allocations: 28 kB / 354.4 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.64e-05/0.1918, allocations: 32 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.192, allocations: 71.88 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1922, allocations: 151.3 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005027/0.1927, allocations: 335 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1927, allocations: 0 / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1927, allocations: 0 / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.368e-06/0.1928, allocations: 0 / 355 MB, free: 15.46 MB / 302.1 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.002006/0.1948, allocations: 0.6354 MB / 355.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.1948, allocations: 8.031 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.97e-05/0.1949, allocations: 36.56 kB / 355.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.1954, allocations: 260.6 kB / 355.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.1954, allocations: 16.81 kB / 355.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.067e-05/0.1955, allocations: 20.38 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008772/0.1964, allocations: 302.9 kB / 356.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1964, allocations: 0 / 356.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.1965, allocations: 12 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1965, allocations: 4 kB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.1976, allocations: 273.5 kB / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.1999, allocations: 1.065 MB / 357.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002121/0.2021, allocations: 442.3 kB / 358 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004658/0.2025, allocations: 148.8 kB / 358.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.644e-05/0.2026, allocations: 0 / 358.2 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.2026, allocations: 34.56 kB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.2026, allocations: 4 kB / 358.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.00508/0.2077, allocations: 1.01 MB / 359.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001759/0.2079, allocations: 59.41 kB / 359.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002574/0.2082, allocations: 224.1 kB / 359.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.2082, allocations: 29.64 kB / 359.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.2083, allocations: 156.1 kB / 359.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.2084, allocations: 55.25 kB / 359.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.977e-05/0.2085, allocations: 33.69 kB / 359.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.2087, allocations: 326.8 kB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/0.2091, allocations: 115.9 kB / 360.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.2095, allocations: 128.4 kB / 360.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006548/0.2102, allocations: 221.9 kB / 360.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2102, allocations: 0 / 360.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002847/0.213, allocations: 0.6372 MB / 361.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2131, allocations: 4 kB / 361.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.2131, allocations: 8 kB / 361.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007563/0.2138, allocations: 216.6 kB / 361.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.214, allocations: 35.92 kB / 361.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007424/0.2214, allocations: 2.758 MB / 364.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.2218, allocations: 31.92 kB / 364.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.2218, allocations: 7.984 kB / 364.2 MB, free: 5.77 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.222, allocations: 134.2 kB / 364.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.2221, allocations: 23.72 kB / 364.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.2221, allocations: 29.52 kB / 364.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2221, allocations: 4 kB / 364.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2221, allocations: 0 / 364.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2221, allocations: 0 / 364.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.2226, allocations: 325.4 kB / 364.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.2226, allocations: 4 kB / 364.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.2227, allocations: 27.92 kB / 364.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006548/0.2234, allocations: 220.7 kB / 365 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.2234, allocations: 7.984 kB / 365 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006891/0.2303, allocations: 2.731 MB / 367.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2304, allocations: 0 / 367.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003274/0.2336, allocations: 0.8499 MB / 368.6 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.283e-05/0.2337, allocations: 96.94 kB / 368.7 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.2338, allocations: 12 kB / 368.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.2341, allocations: 27.97 kB / 368.7 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/0.2341, allocations: 11.98 kB / 368.7 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.2342, allocations: 8 kB / 368.7 MB, free: 1.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001726/0.2343, allocations: 161.8 kB / 368.9 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2344, allocations: 8 kB / 368.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.2348, allocations: 75.84 kB / 369 MB, free: 0.8008 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001662/0.235, allocations: 99.25 kB / 369.1 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.2366, allocations: 458.2 kB / 369.5 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2366, allocations: 3.938 kB / 369.5 MB, free: 236 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1996/0.4362, allocations: 328.1 kB / 369.8 MB, free: 25.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006381/0.437, allocations: 27.2 kB / 369.9 MB, free: 25.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.4386, allocations: 0.5529 MB / 370.4 MB, free: 25.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.4389, allocations: 0.7436 MB / 371.1 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.742e-05/0.439, allocations: 16.56 kB / 371.2 MB, free: 25.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.378e-05/0.4391, allocations: 16.14 kB / 371.2 MB, free: 25.02 MB / 302.1 MB Notification: Performance of SimCode: time 1.452e-06/0.4391, allocations: 0 / 371.2 MB, free: 25.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01144/0.4505, allocations: 4.931 MB / 376.1 MB, free: 24.81 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches