Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009831/0.0009831, allocations: 183.2 kB / 8.481 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.203/1.203, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009091/0.0009092, allocations: 75.69 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/6.953e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07283/0.07285, allocations: 47.57 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2098/0.2827, allocations: 76.57 MB / 439.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.2829, allocations: 71.08 kB / 439.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01263/0.2955, allocations: 4.363 MB / 443.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.2955, allocations: 3.906 kB / 443.6 MB, free: 10.56 MB / 314.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.000877/0.2964, allocations: 0.5334 MB / 444.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.2965, allocations: 14.05 kB / 444.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/0.2966, allocations: 27.16 kB / 444.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.2968, allocations: 249.6 kB / 444.4 MB, free: 9.918 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.2969, allocations: 12.3 kB / 444.4 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.2969, allocations: 15.31 kB / 444.4 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003225/0.2972, allocations: 159.1 kB / 444.6 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.2976, allocations: 222.7 kB / 444.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2976, allocations: 0 / 444.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.2977, allocations: 0 / 444.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2977, allocations: 3.844 kB / 444.8 MB, free: 9.844 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.2992, allocations: 1.04 MB / 445.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.3005, allocations: 308.8 kB / 446.1 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.3007, allocations: 104.5 kB / 446.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.3008, allocations: 7.172 kB / 446.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.539e-05/0.3008, allocations: 38 kB / 446.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.3008, allocations: 0 / 446.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.002614/0.3034, allocations: 0.529 MB / 446.8 MB, free: 9.109 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.523e-05/0.3034, allocations: 51.41 kB / 446.8 MB, free: 9.047 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.3036, allocations: 169.9 kB / 447 MB, free: 8.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3036, allocations: 29.61 kB / 447 MB, free: 8.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.509e-05/0.3036, allocations: 143.4 kB / 447.2 MB, free: 8.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.3037, allocations: 49.05 kB / 447.2 MB, free: 8.773 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/0.3037, allocations: 4 kB / 447.2 MB, free: 8.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.3038, allocations: 326.4 kB / 447.5 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3039, allocations: 58.61 kB / 447.6 MB, free: 8.457 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.304, allocations: 76.42 kB / 447.7 MB, free: 8.441 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.3041, allocations: 58.73 kB / 447.7 MB, free: 8.441 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3041, allocations: 0 / 447.7 MB, free: 8.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002605/0.3067, allocations: 0.5546 MB / 448.3 MB, free: 8.359 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.3067, allocations: 7.906 kB / 448.3 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3067, allocations: 1.531 kB / 448.3 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.3071, allocations: 138.3 kB / 448.4 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.3072, allocations: 39.81 kB / 448.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/0.3118, allocations: 2.124 MB / 450.6 MB, free: 6.871 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.3121, allocations: 39.08 kB / 450.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.3121, allocations: 7.828 kB / 450.6 MB, free: 6.852 MB / 314.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.0001024/0.3122, allocations: 110.6 kB / 450.8 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.3123, allocations: 15.59 kB / 450.8 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.559e-05/0.3123, allocations: 20.31 kB / 450.8 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3123, allocations: 11.83 kB / 450.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3123, allocations: 3.906 kB / 450.8 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3123, allocations: 0 / 450.8 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002686/0.3126, allocations: 284.4 kB / 451.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3126, allocations: 0 / 451.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.3128, allocations: 33.78 kB / 451.1 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/0.313, allocations: 136.6 kB / 451.2 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.313, allocations: 0 / 451.2 MB, free: 6.449 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004695/0.3177, allocations: 2.171 MB / 453.4 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3178, allocations: 7.875 kB / 453.4 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002634/0.3204, allocations: 0.7132 MB / 454.1 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.371e-05/0.3205, allocations: 92.45 kB / 454.2 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.999e-05/0.3205, allocations: 7.875 kB / 454.2 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.3208, allocations: 39.03 kB / 454.3 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.521e-05/0.3209, allocations: 10.39 kB / 454.3 MB, free: 4.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.3209, allocations: 7.891 kB / 454.3 MB, free: 4.508 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.123e-05/0.321, allocations: 133.1 kB / 454.4 MB, free: 4.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004135/0.3214, allocations: 88.84 kB / 454.5 MB, free: 4.41 MB / 314.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.0001196/0.3215, allocations: 106.3 kB / 454.6 MB, free: 4.316 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.3226, allocations: 360.5 kB / 455 MB, free: 4.168 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3226, allocations: 0 / 455 MB, free: 4.168 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009151/0.3235, allocations: 308.8 kB / 455.3 MB, free: 4.023 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.3238, allocations: 15.47 kB / 455.3 MB, free: 4.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009009/0.3247, allocations: 397 kB / 455.7 MB, free: 3.801 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.325, allocations: 0.7672 MB / 456.4 MB, free: 19.05 MB / 330.7 MB Notification: Performance of SimCode: time 3.3e-07/0.325, allocations: 0 / 456.4 MB, free: 19.05 MB / 330.7 MB Notification: Performance of Templates: time 0.005948/0.3309, allocations: 4.031 MB / 460.5 MB, free: 16.98 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches