Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001718/0.001718, allocations: 183.2 kB / 8.481 MB, free: 1.879 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.327/1.327, allocations: 205.2 MB / 214.1 MB, free: 5.164 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.0007709/0.0007709, allocations: 79.41 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.201e-06/6.231e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07264/0.07267, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2469/0.3196, allocations: 76.57 MB / 439.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001549/0.3198, allocations: 70.89 kB / 439.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01578/0.3356, allocations: 6.011 MB / 445.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.3356, allocations: 11.33 kB / 445.2 MB, free: 10.39 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008207/0.3365, allocations: 0.6108 MB / 445.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3365, allocations: 12.16 kB / 445.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.3366, allocations: 46.31 kB / 445.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.337, allocations: 306.9 kB / 446.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3371, allocations: 8.234 kB / 446.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/0.3371, allocations: 19.12 kB / 446.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003924/0.3375, allocations: 215.6 kB / 446.4 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.338, allocations: 280.5 kB / 446.7 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.338, allocations: 4.609 kB / 446.7 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.233e-05/0.338, allocations: 3.906 kB / 446.7 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.338, allocations: 7.688 kB / 446.7 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.3397, allocations: 1.375 MB / 448.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.34, allocations: 179.5 kB / 448.2 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3401, allocations: 87.44 kB / 448.3 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.3401, allocations: 0 / 448.3 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.3401, allocations: 43.94 kB / 448.4 MB, free: 8.586 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.3401, allocations: 3.938 kB / 448.4 MB, free: 8.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004456/0.3406, allocations: 249.2 kB / 448.6 MB, free: 8.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.977e-05/0.3406, allocations: 55.25 kB / 448.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.3408, allocations: 233.9 kB / 448.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.3408, allocations: 26.36 kB / 448.9 MB, free: 8.289 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.3409, allocations: 181.4 kB / 449.1 MB, free: 8.141 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.341, allocations: 77.2 kB / 449.2 MB, free: 8.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.341, allocations: 0 / 449.2 MB, free: 8.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.411e-05/0.341, allocations: 341.2 kB / 449.5 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.417e-05/0.3411, allocations: 63.64 kB / 449.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.3413, allocations: 99.92 kB / 449.7 MB, free: 7.711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.3414, allocations: 74.84 kB / 449.7 MB, free: 7.691 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3414, allocations: 0 / 449.7 MB, free: 7.691 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004844/0.3419, allocations: 298.1 kB / 450 MB, free: 7.582 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.3419, allocations: 3.812 kB / 450 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3419, allocations: 3.906 kB / 450 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003463/0.3423, allocations: 117.8 kB / 450.2 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.3424, allocations: 31.33 kB / 450.2 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.3447, allocations: 3.983 MB / 454.2 MB, free: 19.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.3449, allocations: 23.36 kB / 454.2 MB, free: 19.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.3449, allocations: 7.625 kB / 454.2 MB, free: 19.77 MB / 330.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 9.276e-05/0.345, allocations: 109.8 kB / 454.3 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.3451, allocations: 34.89 kB / 454.3 MB, free: 19.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.917e-05/0.3451, allocations: 35.53 kB / 454.4 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.3451, allocations: 3.875 kB / 454.4 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.3451, allocations: 0 / 454.4 MB, free: 19.63 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.3451, allocations: 7.891 kB / 454.4 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.3454, allocations: 312.8 kB / 454.7 MB, free: 19.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3455, allocations: 3.812 kB / 454.7 MB, free: 19.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.3456, allocations: 31.44 kB / 454.7 MB, free: 19.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000267/0.3458, allocations: 113.3 kB / 454.8 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.3459, allocations: 0 / 454.8 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002599/0.3485, allocations: 3.976 MB / 458.8 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3485, allocations: 3.688 kB / 458.8 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003826/0.3489, allocations: 350.8 kB / 459.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.349, allocations: 126.9 kB / 459.3 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3491, allocations: 3.938 kB / 459.3 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3493, allocations: 23.36 kB / 459.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.3494, allocations: 18.84 kB / 459.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.3494, allocations: 7.719 kB / 459.3 MB, free: 15.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001537/0.3496, allocations: 191 kB / 459.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004095/0.35, allocations: 100.5 kB / 459.6 MB, free: 15.17 MB / 330.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.0001246/0.3501, allocations: 98 kB / 459.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005449/0.3507, allocations: 477.9 kB / 460.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.3507, allocations: 0 / 460.2 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.351, allocations: 415.5 kB / 460.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.3513, allocations: 35.45 kB / 460.6 MB, free: 14.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008105/0.3521, allocations: 392.3 kB / 461 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.3525, allocations: 0.8243 MB / 461.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3525, allocations: 0 / 461.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of Templates: time 0.007363/0.3598, allocations: 4.469 MB / 466.3 MB, free: 11.22 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches