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.002066/0.002067, allocations: 116.3 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002441/0.002441, allocations: 206 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.611/2.611, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 63.88 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6328/0.6347, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.009453/0.6442, allocations: 3.512 MB / 413.4 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003349/0.6477, allocations: 0.8413 MB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.6482, allocations: 11.94 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004158/0.6487, allocations: 67.3 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005635/0.6493, allocations: 126.8 kB / 414.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008219/0.6501, allocations: 143.8 kB / 414.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.6514, allocations: 0.5016 MB / 415.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000499/0.6519, allocations: 143 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006683/0.6526, allocations: 191.3 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005564/0.6532, allocations: 207 kB / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.6533, allocations: 40 kB / 415.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.6535, allocations: 47.98 kB / 415.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.6537, allocations: 95.67 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00052/0.6543, allocations: 226.8 kB / 416.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009353/0.6552, allocations: 499.5 kB / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.6553, allocations: 0 / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.6553, allocations: 0 / 416.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.6553, allocations: 0 / 416.6 MB, free: 10.95 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.002104/0.6574, allocations: 0.7246 MB / 417.3 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.842e-05/0.6575, allocations: 12.03 kB / 417.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006412/0.6582, allocations: 72.34 kB / 417.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009943/0.6592, allocations: 335.2 kB / 417.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.424e-05/0.6593, allocations: 21.03 kB / 417.7 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.851e-05/0.6594, allocations: 32.38 kB / 417.7 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.6606, allocations: 359 kB / 418.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.6606, allocations: 0 / 418.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.073e-05/0.6607, allocations: 20 kB / 418.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.6607, allocations: 8 kB / 418.1 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.6618, allocations: 270.4 kB / 418.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00416/0.666, allocations: 1.415 MB / 419.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008897/0.6669, allocations: 214.5 kB / 420 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.6674, allocations: 117.2 kB / 420.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.6674, allocations: 3.984 kB / 420.1 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.375e-05/0.6675, allocations: 42.36 kB / 420.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 5.38e-06/0.6676, allocations: 0 / 420.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.003125/0.6707, allocations: 0.705 MB / 420.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.6708, allocations: 51.41 kB / 420.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007327/0.6716, allocations: 308.6 kB / 421.2 MB, free: 5.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/0.6717, allocations: 33.7 kB / 421.3 MB, free: 5.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002887/0.672, allocations: 216.1 kB / 421.5 MB, free: 5.703 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.6721, allocations: 74.91 kB / 421.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.6723, allocations: 45.7 kB / 421.6 MB, free: 5.578 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.6725, allocations: 346.8 kB / 421.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/0.6728, allocations: 79.97 kB / 422 MB, free: 5.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.6732, allocations: 124.2 kB / 422.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005731/0.6737, allocations: 208.1 kB / 422.3 MB, free: 4.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.6738, allocations: 0 / 422.3 MB, free: 4.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0011/0.6749, allocations: 355.5 kB / 422.7 MB, free: 4.434 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.6749, allocations: 8 kB / 422.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.6749, allocations: 0 / 422.7 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006681/0.6756, allocations: 118.5 kB / 422.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.6759, allocations: 27.92 kB / 422.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/0.6823, allocations: 4.975 MB / 427.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004426/0.6828, allocations: 24 kB / 427.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.519e-05/0.6829, allocations: 15.97 kB / 427.8 MB, free: 14.84 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.0003629/0.6832, allocations: 149.8 kB / 428 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.6834, allocations: 35.56 kB / 428 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.6835, allocations: 39.17 kB / 428.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.6835, allocations: 4 kB / 428.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.391e-06/0.6836, allocations: 4.062 kB / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.6836, allocations: 0 / 428.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007644/0.6843, allocations: 385.2 kB / 428.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.6844, allocations: 0 / 428.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.6845, allocations: 23.92 kB / 428.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005099/0.6851, allocations: 106.5 kB / 428.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.6851, allocations: 7.984 kB / 428.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006002/0.6911, allocations: 4.971 MB / 433.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6912, allocations: 288 / 433.5 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.6923, allocations: 401.5 kB / 433.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002991/0.6926, allocations: 136.6 kB / 434.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.6927, allocations: 11.92 kB / 434.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.6931, allocations: 24.03 kB / 434.1 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.6933, allocations: 31.91 kB / 434.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.6933, allocations: 7.938 kB / 434.1 MB, free: 8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003801/0.6937, allocations: 223.1 kB / 434.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6937, allocations: 0 / 434.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001164/0.6949, allocations: 111.8 kB / 434.5 MB, free: 7.672 MB / 350.1 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 () * Number of clocked 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 (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 Backend phase and start with SimCode phase: time 0.0002606/0.6952, allocations: 110.8 kB / 434.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.6967, allocations: 0.5777 MB / 435.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.6968, allocations: 4.062 kB / 435.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008426/0.6976, allocations: 481.1 kB / 435.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.6983, allocations: 62.61 kB / 435.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.7005, allocations: 0.6479 MB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.7012, allocations: 0.7992 MB / 437.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.7013, allocations: 23.38 kB / 437.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.7013, allocations: 0 / 437.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of Templates: time 0.01943/0.7207, allocations: 8.506 MB / 445.7 MB, free: 12.35 MB / 366.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