Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001112/0.001112, allocations: 195.6 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008464/0.0008465, allocations: 91.91 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.815e-06/7.855e-06, allocations: 4 kB / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09792, allocations: 51.47 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2392/0.3372, allocations: 78.76 MB / 473.4 MB, free: 13.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001661/0.3374, allocations: 65.83 kB / 473.4 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01458/0.352, allocations: 6.282 MB / 479.7 MB, free: 9.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.352, allocations: 8 kB / 479.7 MB, free: 9.172 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.000821/0.3528, allocations: 0.6295 MB / 480.4 MB, free: 8.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3529, allocations: 12.03 kB / 480.4 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003484/0.3532, allocations: 83.41 kB / 480.4 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.3536, allocations: 298.9 kB / 480.7 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.3536, allocations: 12 kB / 480.8 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.3537, allocations: 16 kB / 480.8 MB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003737/0.354, allocations: 214.6 kB / 481 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004099/0.3544, allocations: 290.1 kB / 481.3 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3545, allocations: 3.906 kB / 481.3 MB, free: 7.734 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.3545, allocations: 4 kB / 481.3 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3545, allocations: 8 kB / 481.3 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.3562, allocations: 1.373 MB / 482.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.3564, allocations: 175 kB / 482.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3566, allocations: 88.53 kB / 482.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3566, allocations: 4 kB / 482.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.3566, allocations: 37.81 kB / 482.9 MB, free: 6.238 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.3566, allocations: 0 / 482.9 MB, free: 6.238 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004208/0.3571, allocations: 245.2 kB / 483.2 MB, free: 6.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.538e-05/0.3571, allocations: 55.41 kB / 483.2 MB, free: 5.977 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.3573, allocations: 241.1 kB / 483.5 MB, free: 5.785 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.3573, allocations: 25.7 kB / 483.5 MB, free: 5.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.3574, allocations: 184.2 kB / 483.7 MB, free: 5.586 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.506e-05/0.3574, allocations: 65.86 kB / 483.7 MB, free: 5.527 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.131e-05/0.3574, allocations: 0 / 483.7 MB, free: 5.527 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.3575, allocations: 344.4 kB / 484.1 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.871e-05/0.3576, allocations: 59.73 kB / 484.1 MB, free: 5.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.3577, allocations: 96.86 kB / 484.2 MB, free: 5.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.3578, allocations: 70.16 kB / 484.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3578, allocations: 0 / 484.3 MB, free: 5.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005066/0.3583, allocations: 305 kB / 484.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.3584, allocations: 4 kB / 484.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3584, allocations: 0 / 484.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003605/0.3587, allocations: 112.1 kB / 484.7 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.3589, allocations: 31.98 kB / 484.7 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.3611, allocations: 3.988 MB / 488.7 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.3614, allocations: 31.83 kB / 488.8 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.3614, allocations: 7.062 kB / 488.8 MB, free: 0.5156 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 6.928e-05/0.3615, allocations: 105.1 kB / 488.9 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.3615, allocations: 35.61 kB / 488.9 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.3616, allocations: 34.25 kB / 488.9 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3616, allocations: 0 / 488.9 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3616, allocations: 0 / 488.9 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3616, allocations: 7.891 kB / 489 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002801/0.3619, allocations: 313.5 kB / 489.3 MB, free: 64 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3619, allocations: 4 kB / 489.3 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.362, allocations: 31.91 kB / 489.3 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003488/0.3624, allocations: 111.1 kB / 489.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3624, allocations: 5.594 kB / 489.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003162/0.3656, allocations: 3.973 MB / 493.4 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.3656, allocations: 4 kB / 493.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005525/0.3662, allocations: 351.8 kB / 493.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.3664, allocations: 128 kB / 493.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.3664, allocations: 0 / 493.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.3667, allocations: 23.98 kB / 493.9 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.3668, allocations: 19.88 kB / 493.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.3668, allocations: 7.75 kB / 493.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001975/0.367, allocations: 189.9 kB / 494.1 MB, free: 11.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.3675, allocations: 99.69 kB / 494.2 MB, free: 11.09 MB / 362.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.0002083/0.3677, allocations: 103.2 kB / 494.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006734/0.3684, allocations: 488.1 kB / 494.8 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3684, allocations: 0 / 494.8 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003674/0.3688, allocations: 406.6 kB / 495.2 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.3691, allocations: 30.48 kB / 495.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009267/0.37, allocations: 403.5 kB / 495.6 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.3705, allocations: 0.8158 MB / 496.4 MB, free: 8.902 MB / 362.7 MB Notification: Performance of SimCode: time 2.054e-06/0.3705, allocations: 0 / 496.4 MB, free: 8.902 MB / 362.7 MB Notification: Performance of Templates: time 0.008617/0.3792, allocations: 4.463 MB / 0.4891 GB, free: 4.539 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches