Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009903/0.0009903, allocations: 183.4 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.213/1.213, allocations: 225.7 MB / 243.2 MB, free: 8.52 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007754/0.0007753, allocations: 90.7 kB / 294.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00023/0.00023, allocations: 15.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.202, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002099/0.2041, allocations: 2.293 MB / 406.9 MB, free: 29.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007392/0.2049, allocations: 0.6286 MB / 407.5 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.205, allocations: 4 kB / 407.5 MB, free: 28.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.2051, allocations: 32.55 kB / 407.5 MB, free: 28.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.2052, allocations: 69.2 kB / 407.6 MB, free: 28.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.2055, allocations: 88.52 kB / 407.7 MB, free: 28.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.2057, allocations: 338.6 kB / 408 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2059, allocations: 86.7 kB / 408.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.206, allocations: 121 kB / 408.2 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.2062, allocations: 143.4 kB / 408.4 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.653e-05/0.2062, allocations: 16 kB / 408.4 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.678e-05/0.2062, allocations: 16 kB / 408.4 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.2063, allocations: 55.75 kB / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.784e-05/0.2064, allocations: 153 kB / 408.6 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.2066, allocations: 324.2 kB / 408.9 MB, free: 26.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2066, allocations: 0 / 408.9 MB, free: 26.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2066, allocations: 4 kB / 408.9 MB, free: 26.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.2066, allocations: 0 / 408.9 MB, free: 26.98 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.001158/0.2078, allocations: 0.6087 MB / 409.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.2078, allocations: 8.031 kB / 409.5 MB, free: 26.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.293e-05/0.2079, allocations: 28.66 kB / 409.6 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.2081, allocations: 264.5 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.2081, allocations: 16.81 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.501e-05/0.2082, allocations: 16.38 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005682/0.2087, allocations: 310.9 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.2088, allocations: 0 / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.2088, allocations: 12 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2088, allocations: 8 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006644/0.2095, allocations: 285.5 kB / 410.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.2108, allocations: 1.077 MB / 411.5 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.2125, allocations: 482.3 kB / 412 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.2128, allocations: 152.8 kB / 412.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.2129, allocations: 4 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.441e-05/0.2129, allocations: 38.81 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.2129, allocations: 0 / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.004235/0.2171, allocations: 1.131 MB / 413.3 MB, free: 22.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.2172, allocations: 51.41 kB / 413.4 MB, free: 22.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.2173, allocations: 216.2 kB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.2174, allocations: 29.69 kB / 413.6 MB, free: 22.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.972e-05/0.2174, allocations: 160.1 kB / 413.8 MB, free: 21.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.2175, allocations: 51.3 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.2175, allocations: 0 / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.2175, allocations: 330.8 kB / 414.1 MB, free: 21.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002856/0.2178, allocations: 119.9 kB / 414.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.2181, allocations: 133.6 kB / 414.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005366/0.2187, allocations: 237.9 kB / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2187, allocations: 0 / 414.6 MB, free: 20.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002477/0.2211, allocations: 0.7045 MB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2212, allocations: 8 kB / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2212, allocations: 0 / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006113/0.2218, allocations: 232.7 kB / 415.6 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.222, allocations: 43.84 kB / 415.6 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005249/0.2272, allocations: 2.607 MB / 418.2 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.2275, allocations: 43.89 kB / 418.3 MB, free: 17.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.2275, allocations: 7.984 kB / 418.3 MB, free: 17.2 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 (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 9.96e-05/0.2276, allocations: 125.8 kB / 418.4 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.2276, allocations: 23.66 kB / 418.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.893e-05/0.2277, allocations: 29.52 kB / 418.4 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2277, allocations: 4 kB / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.2277, allocations: 0 / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2277, allocations: 0 / 418.4 MB, free: 17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.228, allocations: 325.4 kB / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.228, allocations: 0 / 418.8 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.2281, allocations: 35.86 kB / 418.8 MB, free: 16.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000537/0.2287, allocations: 232.7 kB / 419 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2287, allocations: 3.984 kB / 419 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005109/0.2338, allocations: 2.603 MB / 421.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2338, allocations: 0 / 421.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.2366, allocations: 0.9175 MB / 422.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.2366, allocations: 100.9 kB / 422.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.2367, allocations: 3.938 kB / 422.6 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2369, allocations: 40.03 kB / 422.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.237, allocations: 11.98 kB / 422.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.237, allocations: 4 kB / 422.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.518e-05/0.2371, allocations: 157.8 kB / 422.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2371, allocations: 0 / 422.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000368/0.2375, allocations: 79.84 kB / 422.9 MB, free: 12.29 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 (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.000115/0.2376, allocations: 108.4 kB / 423 MB, free: 12.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.2389, allocations: 490.3 kB / 423.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2389, allocations: 3.938 kB / 423.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008691/0.2398, allocations: 347.2 kB / 423.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.2401, allocations: 40.59 kB / 423.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.2412, allocations: 0.6922 MB / 424.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2413, allocations: 0.7401 MB / 425.3 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.767e-05/0.2414, allocations: 13.55 kB / 425.3 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.2414, allocations: 19.44 kB / 425.4 MB, free: 9.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2414, allocations: 0 / 425.4 MB, free: 9.77 MB / 298.7 MB Notification: Performance of Templates: time 0.006311/0.2478, allocations: 4.593 MB / 430 MB, free: 5.184 MB / 298.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches