Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [: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.001588/0.001588, allocations: 179.1 kB / 8.152 MB, free: 2.098 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.655/1.655, allocations: 205.2 MB / 213.8 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.001257/0.001257, allocations: 90.86 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.553e-05/1.568e-05, allocations: 4 kB / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2372, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1168/0.3541, allocations: 76.57 MB / 438.4 MB, free: 9.473 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.3544, allocations: 75.95 kB / 438.5 MB, free: 9.398 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0282/0.3826, allocations: 6.012 MB / 444.5 MB, free: 3.402 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.3827, allocations: 8 kB / 444.5 MB, free: 3.395 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001517/0.3843, allocations: 0.6257 MB / 445.1 MB, free: 2.727 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3843, allocations: 8.031 kB / 445.1 MB, free: 2.719 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.3845, allocations: 47.44 kB / 445.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.3851, allocations: 300.4 kB / 445.5 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.515e-05/0.3851, allocations: 12 kB / 445.5 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.3852, allocations: 16 kB / 445.5 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007415/0.386, allocations: 213.3 kB / 445.7 MB, free: 2.102 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007609/0.3868, allocations: 293.5 kB / 446 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.3868, allocations: 0 / 446 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.3869, allocations: 3.906 kB / 446 MB, free: 1.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.3869, allocations: 8 kB / 446 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.3902, allocations: 1.374 MB / 447.4 MB, free: 332 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005543/0.3909, allocations: 180.9 kB / 447.6 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.3911, allocations: 86.83 kB / 447.6 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.3912, allocations: 0 / 447.6 MB, free: 56 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.3912, allocations: 35.19 kB / 447.7 MB, free: 12 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 4.559e-06/0.3912, allocations: 3.938 kB / 447.7 MB, free: 8 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.000886/0.3921, allocations: 252.1 kB / 447.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.3922, allocations: 55.41 kB / 448 MB, free: 15.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/0.3926, allocations: 231.6 kB / 448.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.3927, allocations: 33.69 kB / 448.2 MB, free: 15.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.3928, allocations: 222.5 kB / 448.5 MB, free: 15.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.3929, allocations: 78.84 kB / 448.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.85e-05/0.3929, allocations: 0 / 448.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.3931, allocations: 330.7 kB / 448.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002097/0.3933, allocations: 60 kB / 448.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.3936, allocations: 102.7 kB / 449 MB, free: 14.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.3938, allocations: 61.61 kB / 449.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3938, allocations: 0 / 449.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001048/0.3949, allocations: 298.1 kB / 449.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3949, allocations: 4 kB / 449.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.3949, allocations: 4 kB / 449.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005962/0.3955, allocations: 107.1 kB / 449.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003536/0.3959, allocations: 36.52 kB / 449.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004858/0.4008, allocations: 3.96 MB / 453.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/0.4012, allocations: 19.83 kB / 453.5 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.4012, allocations: 12.06 kB / 453.5 MB, free: 9.754 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001193/0.4014, allocations: 37.44 kB / 453.5 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.4015, allocations: 35.69 kB / 453.6 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.4016, allocations: 30.19 kB / 453.6 MB, free: 9.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.4016, allocations: 5.219 kB / 453.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4017, allocations: 3.984 kB / 453.6 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4017, allocations: 96 / 453.6 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00057/0.4022, allocations: 317.9 kB / 453.9 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4023, allocations: 3.984 kB / 453.9 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.4025, allocations: 35.91 kB / 454 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000565/0.4031, allocations: 106.4 kB / 454.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.4032, allocations: 0 / 454.1 MB, free: 9.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004763/0.4079, allocations: 3.983 MB / 458.1 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.408, allocations: 4 kB / 458.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007941/0.4088, allocations: 348.2 kB / 458.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.409, allocations: 132.7 kB / 458.5 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.4091, allocations: 0 / 458.5 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004556/0.4096, allocations: 25.33 kB / 458.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.4097, allocations: 19.97 kB / 458.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.4098, allocations: 8 kB / 458.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00031/0.4101, allocations: 191.1 kB / 458.8 MB, free: 4.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006325/0.4107, allocations: 103.6 kB / 458.9 MB, free: 3.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001845/0.4109, allocations: 95.25 kB / 459 MB, free: 3.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.412, allocations: 485.2 kB / 459.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.412, allocations: 0 / 459.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006407/0.4127, allocations: 409.1 kB / 459.8 MB, free: 2.922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005083/0.4132, allocations: 37.92 kB / 459.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.4149, allocations: 415.9 kB / 460.3 MB, free: 2.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006125/0.4155, allocations: 0.8236 MB / 461.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4155, allocations: 4 kB / 461.1 MB, free: 1.598 MB / 346.7 MB Notification: Performance of Templates: time 0.01498/0.4305, allocations: 7.964 MB / 469.1 MB, free: 9.652 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches