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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 110.9 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3163, allocations: 50.54 MB / 409.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005116/0.3215, allocations: 3.5 MB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.3234, allocations: 0.8568 MB / 414.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004351/0.3238, allocations: 4 kB / 414.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.3241, allocations: 71.3 kB / 414.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.3244, allocations: 130.8 kB / 414.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.3248, allocations: 135.8 kB / 414.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.3253, allocations: 0.5016 MB / 415.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.3256, allocations: 140.5 kB / 415.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.3258, allocations: 199.2 kB / 415.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.3261, allocations: 207.1 kB / 415.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-05/0.3261, allocations: 40 kB / 415.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3263, allocations: 40 kB / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.554e-05/0.3263, allocations: 95.61 kB / 415.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.3265, allocations: 222.9 kB / 416.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004741/0.327, allocations: 0.4943 MB / 416.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.327, allocations: 0 / 416.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.327, allocations: 0 / 416.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.3271, allocations: 7.938 kB / 416.6 MB, free: 11.11 MB / 334.1 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.001202/0.3283, allocations: 0.7207 MB / 417.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.358e-05/0.3283, allocations: 12.03 kB / 417.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004009/0.3288, allocations: 72.34 kB / 417.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005581/0.3293, allocations: 331.2 kB / 417.7 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3294, allocations: 25.03 kB / 417.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.3294, allocations: 28.38 kB / 417.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006326/0.3301, allocations: 367 kB / 418.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3301, allocations: 0 / 418.1 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.3301, allocations: 15.98 kB / 418.1 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3301, allocations: 8 kB / 418.1 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.3307, allocations: 270.4 kB / 418.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.3327, allocations: 1.415 MB / 419.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/0.3331, allocations: 222.5 kB / 420 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.3333, allocations: 109.2 kB / 420.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3333, allocations: 0 / 420.1 MB, free: 7.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.3334, allocations: 42.36 kB / 420.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.524e-06/0.3334, allocations: 7.938 kB / 420.2 MB, free: 7.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001462/0.3348, allocations: 0.6973 MB / 420.9 MB, free: 6.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.3349, allocations: 51.41 kB / 420.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003072/0.3352, allocations: 312.6 kB / 421.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3352, allocations: 33.7 kB / 421.3 MB, free: 6.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3354, allocations: 220.1 kB / 421.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/0.3354, allocations: 70.91 kB / 421.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.488e-05/0.3355, allocations: 45.7 kB / 421.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3357, allocations: 342.8 kB / 421.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.3359, allocations: 79.97 kB / 422 MB, free: 5.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.3361, allocations: 132.2 kB / 422.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003773/0.3365, allocations: 200.1 kB / 422.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3365, allocations: 0 / 422.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007021/0.3372, allocations: 351.5 kB / 422.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3372, allocations: 10.81 kB / 422.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3372, allocations: 288 / 422.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003987/0.3376, allocations: 118.6 kB / 422.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.3378, allocations: 31.91 kB / 422.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003751/0.3416, allocations: 4.983 MB / 427.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.3418, allocations: 23.75 kB / 427.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.3418, allocations: 11.98 kB / 427.8 MB, free: 15.01 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001701/0.342, allocations: 153.8 kB / 428 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.11e-05/0.3421, allocations: 39.5 kB / 428 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.3421, allocations: 35.17 kB / 428.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.3421, allocations: 0 / 428.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3422, allocations: 0 / 428.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3423, allocations: 132.6 kB / 428.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.3423, allocations: 4 kB / 428.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.3426, allocations: 23.98 kB / 428.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.441e-05/0.3427, allocations: 19.97 kB / 428.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009172/0.3436, allocations: 415 kB / 428.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006769/0.3443, allocations: 0.5109 MB / 429.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001801/0.3445, allocations: 85.25 kB / 429.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.3447, allocations: 223.1 kB / 429.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of Backend: time 4.01e-07/0.3447, allocations: 0 / 429.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.3457, allocations: 0.5763 MB / 430 MB, free: 12.71 MB / 350.1 MB Notification: Performance of SimCode: time 0.001169/0.3469, allocations: 1.14 MB / 431.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Templates: time 0.009346/0.3563, allocations: 5.154 MB / 436.3 MB, free: 6.422 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches