Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.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.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001037/0.001037, allocations: 191 kB / 19.29 MB, free: 3.715 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.334/1.334, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001194/0.001194, allocations: 47.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/0.08978, allocations: 46.64 MB / 328.7 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004959/0.09478, allocations: 4.193 MB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.09645, allocations: 0.951 MB / 333.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002059/0.09667, allocations: 11.94 kB / 333.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.09694, allocations: 102.9 kB / 334 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.0974, allocations: 190.3 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.0977, allocations: 159.8 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000639/0.09835, allocations: 0.7361 MB / 335.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.09868, allocations: 211.1 kB / 335.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.09897, allocations: 286.9 kB / 335.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.09932, allocations: 326.6 kB / 335.9 MB, free: 12.58 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.75e-05/0.0994, allocations: 64 kB / 335.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.457e-05/0.0995, allocations: 64 kB / 336 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.09965, allocations: 143.4 kB / 336.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002727/0.09993, allocations: 338.3 kB / 336.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000579/0.1005, allocations: 0.7045 MB / 337.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1005, allocations: 4 kB / 337.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1005, allocations: 4 kB / 337.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.1006, allocations: 0 / 337.2 MB, free: 11.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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001414/0.102, allocations: 0.9041 MB / 338.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.102, allocations: 12.03 kB / 338.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.1021, allocations: 68.19 kB / 338.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.1027, allocations: 385.9 kB / 338.5 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.1027, allocations: 37.69 kB / 338.6 MB, free: 9.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.912e-05/0.1028, allocations: 48.38 kB / 338.6 MB, free: 9.742 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008528/0.1037, allocations: 0.5532 MB / 339.2 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1037, allocations: 0 / 339.2 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.1038, allocations: 20 kB / 339.2 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1038, allocations: 12 kB / 339.2 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008078/0.1046, allocations: 455.6 kB / 339.7 MB, free: 8.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002504/0.1071, allocations: 2.03 MB / 341.7 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008436/0.108, allocations: 0.6415 MB / 342.3 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005525/0.1085, allocations: 398.2 kB / 342.7 MB, free: 5.504 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.1086, allocations: 8.547 kB / 342.7 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.1086, allocations: 39.12 kB / 342.8 MB, free: 5.445 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 1.894e-06/0.1086, allocations: 0 / 342.8 MB, free: 5.445 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004068/0.1127, allocations: 2.032 MB / 344.8 MB, free: 3.293 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.1128, allocations: 59.95 kB / 344.9 MB, free: 3.223 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.1131, allocations: 357.7 kB / 345.2 MB, free: 2.859 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.1132, allocations: 37.7 kB / 345.2 MB, free: 2.816 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1133, allocations: 233.2 kB / 345.5 MB, free: 2.586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.1134, allocations: 201 kB / 345.7 MB, free: 2.387 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.1136, allocations: 94.19 kB / 345.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1137, allocations: 358.8 kB / 346.1 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.114, allocations: 169 kB / 346.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.1144, allocations: 207.8 kB / 346.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006261/0.115, allocations: 380.9 kB / 346.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.115, allocations: 4 kB / 346.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001144/0.1162, allocations: 0.6695 MB / 347.5 MB, free: 500 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1162, allocations: 11.94 kB / 347.5 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1162, allocations: 0 / 347.5 MB, free: 488 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000685/0.1169, allocations: 259.1 kB / 347.8 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.1172, allocations: 64 kB / 347.8 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006226/0.1234, allocations: 7.505 MB / 355.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.1237, allocations: 20.05 kB / 355.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.1238, allocations: 16 kB / 355.4 MB, free: 8.051 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.124, allocations: 169.8 kB / 355.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.66e-05/0.1241, allocations: 47.44 kB / 355.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.1242, allocations: 68.94 kB / 355.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1242, allocations: 4 kB / 355.7 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.1242, allocations: 15.88 kB / 355.7 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1242, allocations: 3.984 kB / 355.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.1262, allocations: 1.337 MB / 357 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1262, allocations: 0 / 357 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.1265, allocations: 55.91 kB / 357.1 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006509/0.1271, allocations: 255.5 kB / 357.3 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.671e-05/0.1272, allocations: 19.98 kB / 357.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006387/0.1336, allocations: 7.497 MB / 364.8 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1336, allocations: 4.062 kB / 364.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.1353, allocations: 1.034 MB / 365.9 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000208/0.1355, allocations: 160.5 kB / 366 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.1356, allocations: 8 kB / 366.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.1358, allocations: 16 kB / 366.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.1359, allocations: 48.48 kB / 366.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.136, allocations: 19.98 kB / 366.1 MB, free: 12.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002595/0.1363, allocations: 255.2 kB / 366.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1363, allocations: 4 kB / 366.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008661/0.1371, allocations: 176 kB / 366.6 MB, free: 12.19 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001502/0.1373, allocations: 115.2 kB / 366.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.1389, allocations: 1.037 MB / 367.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1389, allocations: 0 / 367.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.14, allocations: 0.8492 MB / 368.6 MB, free: 10.08 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005165/0.1405, allocations: 89.77 kB / 368.6 MB, free: 9.988 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.1428, allocations: 1.286 MB / 369.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005095/0.1433, allocations: 0.8754 MB / 370.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.1435, allocations: 48.55 kB / 370.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.519e-05/0.1436, allocations: 27.44 kB / 370.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1436, allocations: 0 / 370.9 MB, free: 7.699 MB / 318.1 MB Notification: Performance of Templates: time 0.1675/0.3111, allocations: 8.956 MB / 379.8 MB, free: 52.32 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches