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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 114.5 kB / 17.93 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 189.9 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.1 MB / 224.7 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00153/0.00153, allocations: 59.91 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08238/0.08392, allocations: 46.63 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00405/0.08801, allocations: 3.481 MB / 330.9 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.08922, allocations: 0.784 MB / 331.7 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.08939, allocations: 8 kB / 331.7 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.08959, allocations: 51.59 kB / 331.8 MB, free: 456 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.0898, allocations: 115 kB / 331.9 MB, free: 340 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.09005, allocations: 91.89 kB / 332 MB, free: 248 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004266/0.09049, allocations: 0.4939 MB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.09072, allocations: 135.2 kB / 332.6 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.09095, allocations: 195.2 kB / 332.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.09116, allocations: 203.1 kB / 333 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-05/0.09122, allocations: 40 kB / 333 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.712e-05/0.09128, allocations: 40 kB / 333.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.992e-05/0.09136, allocations: 95.61 kB / 333.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.09153, allocations: 214.9 kB / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.09184, allocations: 371 kB / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.09185, allocations: 3.938 kB / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.09185, allocations: 0 / 333.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.944e-06/0.09187, allocations: 0 / 333.7 MB, free: 14.47 MB / 286.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.00101/0.09288, allocations: 0.7129 MB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.09293, allocations: 15.89 kB / 334.5 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.227e-05/0.09302, allocations: 48.36 kB / 334.5 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.09335, allocations: 319.3 kB / 334.8 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.09337, allocations: 25.03 kB / 334.8 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.09342, allocations: 32.38 kB / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005614/0.09399, allocations: 363 kB / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.09401, allocations: 0 / 335.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.09405, allocations: 16 kB / 335.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.09406, allocations: 12 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004912/0.09456, allocations: 266.4 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.0963, allocations: 1.422 MB / 336.9 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.09669, allocations: 218.5 kB / 337.1 MB, free: 10.83 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.0969, allocations: 108.8 kB / 337.3 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.09693, allocations: 4 kB / 337.3 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.09696, allocations: 42.91 kB / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.352e-06/0.09696, allocations: 0 / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001396/0.09836, allocations: 0.694 MB / 338 MB, free: 9.898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.09841, allocations: 55.41 kB / 338 MB, free: 9.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.09869, allocations: 308.5 kB / 338.3 MB, free: 9.523 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.09872, allocations: 29.7 kB / 338.4 MB, free: 9.488 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.09886, allocations: 212.1 kB / 338.6 MB, free: 9.273 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.09892, allocations: 74.89 kB / 338.7 MB, free: 9.199 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.698e-05/0.09901, allocations: 53.7 kB / 338.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.09912, allocations: 334.8 kB / 339 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.0993, allocations: 83.95 kB / 339.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.09951, allocations: 124.2 kB / 339.2 MB, free: 8.586 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.09986, allocations: 200.1 kB / 339.4 MB, free: 8.375 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.09987, allocations: 0 / 339.4 MB, free: 8.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006559/0.1005, allocations: 359.7 kB / 339.8 MB, free: 8.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1006, allocations: 8 kB / 339.8 MB, free: 8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1006, allocations: 96 / 339.8 MB, free: 8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003846/0.101, allocations: 122.4 kB / 339.9 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.1011, allocations: 31.98 kB / 339.9 MB, free: 7.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/0.1045, allocations: 4.974 MB / 344.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.1047, allocations: 27.77 kB / 344.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.1048, allocations: 8 kB / 345 MB, free: 2.418 MB / 286.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.000151/0.1049, allocations: 153.8 kB / 345.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.691e-05/0.105, allocations: 35.56 kB / 345.1 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.879e-05/0.1051, allocations: 35.17 kB / 345.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1051, allocations: 4 kB / 345.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1051, allocations: 0 / 345.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1051, allocations: 3.984 kB / 345.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.1055, allocations: 377.2 kB / 345.5 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1055, allocations: 4 kB / 345.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.1056, allocations: 19.98 kB / 345.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002984/0.1059, allocations: 114.5 kB / 345.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1059, allocations: 4 kB / 345.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0032/0.1091, allocations: 4.967 MB / 350.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1091, allocations: 3.984 kB / 350.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.1097, allocations: 398.2 kB / 351 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1098, allocations: 128.8 kB / 351.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.1099, allocations: 8 kB / 351.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.1101, allocations: 19.97 kB / 351.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1102, allocations: 23.97 kB / 351.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1103, allocations: 11.88 kB / 351.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002558/0.1105, allocations: 219.1 kB / 351.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1105, allocations: 0 / 351.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007128/0.1113, allocations: 123.7 kB / 351.6 MB, free: 11.27 MB / 302.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.0001742/0.1114, allocations: 103.2 kB / 351.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.1125, allocations: 0.5741 MB / 352.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.1125, allocations: 4 kB / 352.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.1131, allocations: 487.7 kB / 352.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.1137, allocations: 65.83 kB / 352.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.1153, allocations: 0.7998 MB / 353.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.1156, allocations: 0.7991 MB / 354.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.767e-05/0.1157, allocations: 23.42 kB / 354.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1157, allocations: 0 / 354.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of Templates: time 0.009689/0.1254, allocations: 8.275 MB / 362.7 MB, free: 15.99 MB / 318.1 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/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_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches