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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009795/0.0009795, allocations: 180.9 kB / 8.135 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.131/1.131, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009273/0.0009275, allocations: 101.5 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.915e-06/7.955e-06, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1983, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07719/0.2755, allocations: 78.1 MB / 465 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.2758, allocations: 68.52 kB / 465.1 MB, free: 8.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01355/0.2893, allocations: 4.532 MB / 469.6 MB, free: 4.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.2894, allocations: 11.98 kB / 469.6 MB, free: 4.125 MB / 346.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.0008825/0.2903, allocations: 0.5372 MB / 470.2 MB, free: 3.543 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2903, allocations: 8.031 kB / 470.2 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.643e-05/0.2904, allocations: 36.88 kB / 470.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.2907, allocations: 251.5 kB / 470.4 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.2907, allocations: 8 kB / 470.4 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.2907, allocations: 12 kB / 470.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003308/0.2911, allocations: 160.8 kB / 470.6 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.2914, allocations: 221.8 kB / 470.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.2914, allocations: 3.906 kB / 470.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.2915, allocations: 0 / 470.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.2915, allocations: 8 kB / 470.8 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.2931, allocations: 1.038 MB / 471.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.2945, allocations: 301.6 kB / 472.2 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.2947, allocations: 97.88 kB / 472.3 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2947, allocations: 0 / 472.3 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.2947, allocations: 31.25 kB / 472.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.2947, allocations: 4 kB / 472.3 MB, free: 1.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.002778/0.2975, allocations: 0.5411 MB / 472.8 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.2976, allocations: 51.41 kB / 472.9 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.2977, allocations: 174 kB / 473.1 MB, free: 468 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2978, allocations: 27.67 kB / 473.1 MB, free: 436 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.343e-05/0.2978, allocations: 148.1 kB / 473.2 MB, free: 284 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.2979, allocations: 47.27 kB / 473.3 MB, free: 236 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.2979, allocations: 0 / 473.3 MB, free: 236 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.298, allocations: 326.8 kB / 473.6 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2982, allocations: 59.98 kB / 473.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.2983, allocations: 76.83 kB / 473.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.2984, allocations: 55.98 kB / 473.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2984, allocations: 4 kB / 473.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00266/0.3011, allocations: 0.5564 MB / 474.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3011, allocations: 4 kB / 474.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3011, allocations: 4 kB / 474.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003191/0.3015, allocations: 136.8 kB / 474.5 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.3017, allocations: 31.98 kB / 474.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005005/0.3067, allocations: 2.126 MB / 476.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003215/0.307, allocations: 36.09 kB / 476.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.3071, allocations: 11.89 kB / 476.7 MB, free: 12.68 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zDiode.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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.0001379/0.3072, allocations: 104.7 kB / 476.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.3073, allocations: 19.81 kB / 476.8 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.522e-05/0.3073, allocations: 25.45 kB / 476.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3073, allocations: 0.5625 kB / 476.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.3073, allocations: 0 / 476.8 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3073, allocations: 3.906 kB / 476.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/0.3077, allocations: 286.4 kB / 477.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3077, allocations: 7.844 kB / 477.1 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.3079, allocations: 31.97 kB / 477.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002728/0.3082, allocations: 141.8 kB / 477.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3082, allocations: 0.9375 kB / 477.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005233/0.3134, allocations: 2.169 MB / 479.5 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3135, allocations: 7.844 kB / 479.5 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002802/0.3163, allocations: 0.7108 MB / 480.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.638e-05/0.3164, allocations: 92.86 kB / 480.3 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.3164, allocations: 7.984 kB / 480.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/0.3167, allocations: 40.97 kB / 480.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.3168, allocations: 0 / 480.3 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.3168, allocations: 15.98 kB / 480.4 MB, free: 8.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001129/0.3169, allocations: 140.6 kB / 480.5 MB, free: 8.695 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004632/0.3174, allocations: 83.88 kB / 480.6 MB, free: 8.613 MB / 362.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 () * 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.0001407/0.3175, allocations: 103.2 kB / 480.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3187, allocations: 358.2 kB / 481 MB, free: 8.145 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3187, allocations: 4 kB / 481 MB, free: 8.141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.3198, allocations: 305.7 kB / 481.3 MB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.32, allocations: 14.42 kB / 481.3 MB, free: 7.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.3211, allocations: 406 kB / 481.7 MB, free: 7.402 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.3214, allocations: 0.7666 MB / 482.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3214, allocations: 0 / 482.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of Templates: time 0.00687/0.3282, allocations: 4.029 MB / 486.5 MB, free: 2.605 MB / 362.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