Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") translateModel(Modelica.Electrical.Analog.Examples.HeatingRectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Capacitor1.v|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier") [: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.001674/0.001673, allocations: 178.8 kB / 8.153 MB, free: 2.18 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.668/1.668, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001247/0.001247, allocations: 87.14 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.422e-05/1.437e-05, allocations: 4 kB / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2437, allocations: 47.54 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.3632, allocations: 77.23 MB / 439.1 MB, free: 8.812 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.3635, allocations: 67.95 kB / 439.1 MB, free: 8.746 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01739/0.3809, allocations: 3.638 MB / 442.8 MB, free: 5.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.381, allocations: 4 kB / 442.8 MB, free: 5.137 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.0009672/0.382, allocations: 496.4 kB / 443.3 MB, free: 4.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.3821, allocations: 12.03 kB / 443.3 MB, free: 4.598 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.885e-05/0.3822, allocations: 26.72 kB / 443.3 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.3825, allocations: 231.3 kB / 443.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.3826, allocations: 8 kB / 443.5 MB, free: 4.297 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.3826, allocations: 12 kB / 443.5 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004919/0.3831, allocations: 128.8 kB / 443.7 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.3836, allocations: 149 kB / 443.8 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.3836, allocations: 3.984 kB / 443.8 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.3837, allocations: 0 / 443.8 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.3837, allocations: 8 kB / 443.8 MB, free: 3.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.3858, allocations: 0.8149 MB / 444.6 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.3861, allocations: 89.7 kB / 444.7 MB, free: 3.012 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.3864, allocations: 85.25 kB / 444.8 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.3865, allocations: 7.906 kB / 444.8 MB, free: 2.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3865, allocations: 30.56 kB / 444.8 MB, free: 2.879 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 2.905e-06/0.3865, allocations: 4 kB / 444.8 MB, free: 2.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.001024/0.3875, allocations: 199.7 kB / 445 MB, free: 2.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.3876, allocations: 51.41 kB / 445.1 MB, free: 2.609 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.3878, allocations: 150 kB / 445.2 MB, free: 2.457 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.3879, allocations: 25.7 kB / 445.3 MB, free: 2.426 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.388, allocations: 202.6 kB / 445.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.973e-05/0.3881, allocations: 59.11 kB / 445.5 MB, free: 2.168 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.213e-05/0.3881, allocations: 0 / 445.5 MB, free: 2.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3882, allocations: 318.8 kB / 445.8 MB, free: 1.848 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.3883, allocations: 40.38 kB / 445.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.3885, allocations: 54.28 kB / 445.9 MB, free: 1.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.3889, allocations: 71.8 kB / 446 MB, free: 1.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3889, allocations: 8 kB / 446 MB, free: 1.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007773/0.3897, allocations: 202.3 kB / 446.2 MB, free: 1.465 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3897, allocations: 8.938 kB / 446.2 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3898, allocations: 0 / 446.2 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008596/0.3906, allocations: 92.81 kB / 446.3 MB, free: 1.363 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.391, allocations: 35.97 kB / 446.3 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009117/0.3919, allocations: 0.6283 MB / 447 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002072/0.3921, allocations: 15.91 kB / 447 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.3922, allocations: 4 kB / 447 MB, free: 0.6562 MB / 330.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 9.782e-05/0.3923, allocations: 29.69 kB / 447 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.662e-05/0.3924, allocations: 18.53 kB / 447 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008021/0.3932, allocations: 217.4 kB / 447.2 MB, free: 396 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3932, allocations: 7.984 kB / 447.2 MB, free: 388 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.3932, allocations: 0 / 447.2 MB, free: 388 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.3932, allocations: 7.984 kB / 447.3 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.3947, allocations: 0.538 MB / 447.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3948, allocations: 0 / 447.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.3951, allocations: 28.02 kB / 447.8 MB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008376/0.3959, allocations: 104.8 kB / 447.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.396, allocations: 0 / 447.9 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009567/0.3969, allocations: 0.6537 MB / 448.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.397, allocations: 0 / 448.6 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001082/0.3981, allocations: 391 kB / 449 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.3982, allocations: 96.86 kB / 449.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.3983, allocations: 4 kB / 449.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.3985, allocations: 11.98 kB / 449.1 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.3986, allocations: 12.05 kB / 449.1 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.3986, allocations: 4 kB / 449.1 MB, free: 14.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001611/0.3988, allocations: 120.8 kB / 449.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004157/0.3992, allocations: 59.75 kB / 449.3 MB, free: 14.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002386/0.3995, allocations: 115.1 kB / 449.4 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005122/0.4, allocations: 126.8 kB / 449.5 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4, allocations: 0 / 449.5 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002742/0.4003, allocations: 75.98 kB / 449.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.4007, allocations: 15.98 kB / 449.6 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.402, allocations: 397.8 kB / 450 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004816/0.4026, allocations: 0.7614 MB / 450.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/0.4026, allocations: 0 / 450.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of Templates: time 0.008074/0.4106, allocations: 3.001 MB / 453.7 MB, free: 9.742 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingRectifier/HeatingRectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingRectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches