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.001074/0.001074, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001004/0.001005, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.315/1.315, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001072/0.001072, allocations: 47.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08316/0.08424, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004415/0.08869, allocations: 3.446 MB / 332.2 MB, free: 292 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.08983, allocations: 0.7837 MB / 332.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.08998, allocations: 11.94 kB / 333 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.09018, allocations: 67.34 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.09039, allocations: 134.8 kB / 333.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.09066, allocations: 103.8 kB / 333.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004946/0.09116, allocations: 0.4978 MB / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.09142, allocations: 139.2 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/0.09165, allocations: 207.2 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.0919, allocations: 203.1 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.677e-05/0.09196, allocations: 40 kB / 334.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.345e-05/0.09203, allocations: 40 kB / 334.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.09213, allocations: 91.62 kB / 334.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.09233, allocations: 218.9 kB / 334.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.09278, allocations: 490.2 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.09279, allocations: 0 / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.0928, allocations: 0 / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.09281, allocations: 4 kB / 335.2 MB, free: 13.27 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.001051/0.09387, allocations: 0.7168 MB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.09391, allocations: 15.89 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.498e-05/0.09399, allocations: 48.38 kB / 335.9 MB, free: 12.44 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.09438, allocations: 315.3 kB / 336.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.008e-05/0.0944, allocations: 28.97 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.09445, allocations: 32.38 kB / 336.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.09501, allocations: 351.1 kB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.09503, allocations: 4 kB / 336.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.09506, allocations: 16 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.09508, allocations: 8 kB / 336.7 MB, free: 11.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005198/0.0956, allocations: 270.4 kB / 336.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.09742, allocations: 1.418 MB / 338.4 MB, free: 9.859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003768/0.09781, allocations: 222.4 kB / 338.6 MB, free: 9.633 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001899/0.09801, allocations: 112.8 kB / 338.7 MB, free: 9.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.09804, allocations: 4 kB / 338.7 MB, free: 9.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.09807, allocations: 34.97 kB / 338.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.362e-06/0.09808, allocations: 0 / 338.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001389/0.09947, allocations: 0.7018 MB / 339.4 MB, free: 8.699 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.09951, allocations: 51.41 kB / 339.5 MB, free: 8.637 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.0998, allocations: 304.6 kB / 339.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.09983, allocations: 29.7 kB / 339.8 MB, free: 8.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.09996, allocations: 220 kB / 340 MB, free: 8.078 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.997e-05/0.1, allocations: 78.89 kB / 340.1 MB, free: 8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.547e-05/0.1001, allocations: 49.7 kB / 340.1 MB, free: 7.945 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1002, allocations: 342.8 kB / 340.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.1004, allocations: 75.97 kB / 340.5 MB, free: 7.527 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.1006, allocations: 120.2 kB / 340.7 MB, free: 7.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.101, allocations: 200.2 kB / 340.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.101, allocations: 0 / 340.9 MB, free: 7.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006366/0.1016, allocations: 359.5 kB / 341.2 MB, free: 6.816 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1017, allocations: 4 kB / 341.2 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1017, allocations: 4 kB / 341.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.102, allocations: 118.4 kB / 341.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1022, allocations: 31.97 kB / 341.4 MB, free: 6.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003495/0.1057, allocations: 4.974 MB / 346.3 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.1059, allocations: 19.75 kB / 346.4 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.1059, allocations: 8 kB / 346.4 MB, free: 1.238 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.0001499/0.1061, allocations: 153.8 kB / 346.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.1062, allocations: 39.56 kB / 346.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.218e-05/0.1062, allocations: 35.17 kB / 346.6 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1062, allocations: 8.062 kB / 346.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1062, allocations: 0 / 346.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1062, allocations: 0 / 346.6 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.1066, allocations: 381.2 kB / 347 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1066, allocations: 0 / 347 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.1068, allocations: 19.98 kB / 347 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.1071, allocations: 122.4 kB / 347.1 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.1071, allocations: 8 kB / 347.1 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/0.1106, allocations: 4.959 MB / 352.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1106, allocations: 3.984 kB / 352.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005575/0.1112, allocations: 406.2 kB / 352.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.1113, allocations: 124.8 kB / 352.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.1113, allocations: 4 kB / 352.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1116, allocations: 19.98 kB / 352.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.104e-05/0.1116, allocations: 27.95 kB / 352.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1117, allocations: 11.94 kB / 352.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000233/0.1119, allocations: 219.1 kB / 352.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1119, allocations: 288 / 352.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.1125, allocations: 119.7 kB / 353 MB, free: 10.09 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.0001623/0.1127, allocations: 103.2 kB / 353.1 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009771/0.1137, allocations: 0.5741 MB / 353.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1137, allocations: 0 / 353.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005611/0.1143, allocations: 487.7 kB / 354.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.1147, allocations: 57.19 kB / 354.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.1157, allocations: 0.6115 MB / 354.8 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.1161, allocations: 0.7992 MB / 355.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.06e-05/0.1162, allocations: 26.97 kB / 355.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.1162, allocations: 23.38 kB / 355.7 MB, free: 7.273 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1162, allocations: 3.938 kB / 355.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of Templates: time 0.008995/0.1252, allocations: 5.387 MB / 361 MB, free: 1.887 MB / 302.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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches