Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.001805/0.001805, allocations: 182.1 kB / 8.152 MB, free: 2.207 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.653/1.653, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001263/0.001262, allocations: 89.88 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.285e-06/8.316e-06, allocations: 0 / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2339, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.3546, allocations: 76.58 MB / 438.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.355, allocations: 67.95 kB / 438.5 MB, free: 9.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02319/0.3782, allocations: 4.368 MB / 442.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.3783, allocations: 4 kB / 442.9 MB, free: 5.09 MB / 330.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.001588/0.3799, allocations: 0.5362 MB / 443.4 MB, free: 4.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.3799, allocations: 8.031 kB / 443.4 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.3801, allocations: 31.62 kB / 443.4 MB, free: 4.473 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.3805, allocations: 251.5 kB / 443.7 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.3806, allocations: 8 kB / 443.7 MB, free: 4.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.3806, allocations: 12 kB / 443.7 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006281/0.3813, allocations: 168.8 kB / 443.9 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/0.3819, allocations: 217.8 kB / 444.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.382, allocations: 0 / 444.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.382, allocations: 0 / 444.1 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.382, allocations: 11.94 kB / 444.1 MB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.385, allocations: 1.042 MB / 445.1 MB, free: 2.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3876, allocations: 301.6 kB / 445.4 MB, free: 2.352 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003381/0.388, allocations: 110.8 kB / 445.5 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.388, allocations: 0 / 445.5 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.3881, allocations: 38.56 kB / 445.6 MB, free: 2.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.913e-06/0.3881, allocations: 0 / 445.6 MB, free: 2.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.005049/0.3931, allocations: 0.5292 MB / 446.1 MB, free: 1.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.3932, allocations: 51.41 kB / 446.1 MB, free: 1.594 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.3936, allocations: 174 kB / 446.3 MB, free: 1.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.3936, allocations: 25.7 kB / 446.3 MB, free: 1.387 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3938, allocations: 202.5 kB / 446.5 MB, free: 1.184 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.3939, allocations: 51.27 kB / 446.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.3939, allocations: 0 / 446.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.394, allocations: 314.8 kB / 446.9 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002375/0.3943, allocations: 59.98 kB / 447 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.3945, allocations: 80.61 kB / 447 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3947, allocations: 55.98 kB / 447.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3948, allocations: 0 / 447.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004965/0.3997, allocations: 0.5371 MB / 447.6 MB, free: 76 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/0.3998, allocations: 8 kB / 447.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3998, allocations: 0 / 447.6 MB, free: 68 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000595/0.4004, allocations: 138.4 kB / 447.8 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.4008, allocations: 39.92 kB / 447.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008995/0.4098, allocations: 2.106 MB / 449.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000515/0.4104, allocations: 43.92 kB / 450 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.4104, allocations: 4 kB / 450 MB, free: 13.63 MB / 346.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.0001777/0.4106, allocations: 37.62 kB / 450 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.4107, allocations: 19.72 kB / 450 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.4109, allocations: 21.47 kB / 450 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.4109, allocations: 4 kB / 450 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4109, allocations: 0 / 450 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4109, allocations: 7.984 kB / 450 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000539/0.4115, allocations: 277.8 kB / 450.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4115, allocations: 4 kB / 450.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.4118, allocations: 31.98 kB / 450.4 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004689/0.4123, allocations: 136.8 kB / 450.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.4124, allocations: 3.984 kB / 450.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009545/0.4219, allocations: 2.17 MB / 452.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.422, allocations: 2.25 kB / 452.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005291/0.4273, allocations: 0.7226 MB / 453.4 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.4274, allocations: 100.8 kB / 453.5 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.563e-05/0.4275, allocations: 7.938 kB / 453.5 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.4281, allocations: 43.03 kB / 453.5 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.4282, allocations: 3.984 kB / 453.5 MB, free: 9.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.46e-05/0.4282, allocations: 7.984 kB / 453.5 MB, free: 9.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001955/0.4284, allocations: 136.6 kB / 453.7 MB, free: 9.715 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006389/0.4291, allocations: 71.84 kB / 453.8 MB, free: 9.645 MB / 346.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.0002122/0.4293, allocations: 108.4 kB / 453.9 MB, free: 9.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.4314, allocations: 364 kB / 454.2 MB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4314, allocations: 0 / 454.2 MB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.4333, allocations: 301.7 kB / 454.5 MB, free: 8.863 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.4338, allocations: 27.89 kB / 454.5 MB, free: 8.836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.4356, allocations: 414.8 kB / 454.9 MB, free: 8.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.4362, allocations: 0.7705 MB / 455.7 MB, free: 7.605 MB / 346.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4362, allocations: 4 kB / 455.7 MB, free: 7.602 MB / 346.7 MB Notification: Performance of Templates: time 0.009652/0.4458, allocations: 3.939 MB / 459.7 MB, free: 3.695 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches