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.0009699/0.0009698, allocations: 97.64 kB / 17.3 MB, free: 6.387 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.0012/0.0012, allocations: 176.8 kB / 18.21 MB, free: 5.551 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.643/1.643, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004879/0.0004882, allocations: 12 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 47.57 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004517/0.11, allocations: 3.819 MB / 332.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.1127, allocations: 0.9511 MB / 333.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008135/0.1135, allocations: 12 kB / 333.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005239/0.1141, allocations: 75.38 kB / 333.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.1151, allocations: 158.7 kB / 334 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.1156, allocations: 135.9 kB / 334.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1168, allocations: 0.7127 MB / 334.8 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.1172, allocations: 196.2 kB / 335 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005192/0.1177, allocations: 242.9 kB / 335.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006194/0.1184, allocations: 302.5 kB / 335.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001593/0.1186, allocations: 36 kB / 335.6 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.1188, allocations: 32 kB / 335.6 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.119, allocations: 115.5 kB / 335.7 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004564/0.1195, allocations: 320 kB / 336 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007392/0.1202, allocations: 0.6614 MB / 336.7 MB, free: 11.97 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1202, allocations: 0 / 336.7 MB, free: 11.97 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1202, allocations: 4 kB / 336.7 MB, free: 11.97 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.076e-05/0.1203, allocations: 3.938 kB / 336.7 MB, free: 11.96 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.00158/0.1219, allocations: 0.8107 MB / 337.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1219, allocations: 8.031 kB / 337.5 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.1221, allocations: 72.09 kB / 337.6 MB, free: 11.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.1226, allocations: 378 kB / 338 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.1227, allocations: 41.69 kB / 338 MB, free: 10.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-05/0.1228, allocations: 52.38 kB / 338 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.1238, allocations: 0.5532 MB / 338.6 MB, free: 9.945 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.1239, allocations: 4 kB / 338.6 MB, free: 9.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/0.1239, allocations: 20 kB / 338.6 MB, free: 9.922 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.1239, allocations: 12 kB / 338.6 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009561/0.1249, allocations: 467.6 kB / 339.1 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.1279, allocations: 2.065 MB / 341.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009015/0.1288, allocations: 0.6376 MB / 341.8 MB, free: 6.637 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000578/0.1294, allocations: 410.2 kB / 342.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.266e-05/0.1295, allocations: 20.53 kB / 342.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.1295, allocations: 39.11 kB / 342.2 MB, free: 6.164 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 2.274e-06/0.1295, allocations: 0 / 342.2 MB, free: 6.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004382/0.1339, allocations: 2.079 MB / 344.3 MB, free: 3.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.1339, allocations: 63.91 kB / 344.4 MB, free: 3.891 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.1343, allocations: 365.6 kB / 344.7 MB, free: 3.523 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/0.1344, allocations: 37.7 kB / 344.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.1345, allocations: 229.2 kB / 345 MB, free: 3.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1347, allocations: 197.1 kB / 345.2 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/0.1348, allocations: 53.69 kB / 345.3 MB, free: 3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1349, allocations: 350.8 kB / 345.6 MB, free: 2.648 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003429/0.1352, allocations: 177 kB / 345.8 MB, free: 2.477 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.1356, allocations: 223.8 kB / 346 MB, free: 2.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.1364, allocations: 384.9 kB / 346.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1364, allocations: 0 / 346.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001206/0.1376, allocations: 0.6851 MB / 347 MB, free: 1.164 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.1377, allocations: 7.938 kB / 347.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.1377, allocations: 0 / 347.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006872/0.1384, allocations: 259.1 kB / 347.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.1387, allocations: 71.89 kB / 347.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006128/0.1448, allocations: 6.785 MB / 354.2 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.1452, allocations: 24.02 kB / 354.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.1452, allocations: 12 kB / 354.2 MB, free: 9.461 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.000253/0.1455, allocations: 169.8 kB / 354.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.563e-05/0.1456, allocations: 59.41 kB / 354.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001404/0.1457, allocations: 64.94 kB / 354.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1457, allocations: 8 kB / 354.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.1458, allocations: 7.875 kB / 354.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1458, allocations: 0 / 354.5 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.1479, allocations: 1.353 MB / 355.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.148, allocations: 0 / 355.9 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.1483, allocations: 59.95 kB / 355.9 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006442/0.1489, allocations: 263.4 kB / 356.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.149, allocations: 12 kB / 356.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006623/0.1556, allocations: 6.796 MB / 363 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1556, allocations: 0 / 363 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.1576, allocations: 1.056 MB / 364 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1578, allocations: 156.5 kB / 364.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.447e-05/0.1579, allocations: 12 kB / 364.2 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.1581, allocations: 23.98 kB / 364.2 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.1583, allocations: 48.48 kB / 364.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.1583, allocations: 16 kB / 364.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002876/0.1586, allocations: 259.2 kB / 364.5 MB, free: 14.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1586, allocations: 0 / 364.5 MB, free: 14.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008904/0.1595, allocations: 172 kB / 364.7 MB, free: 14.27 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.000208/0.1597, allocations: 119.5 kB / 364.8 MB, free: 14.15 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001636/0.1614, allocations: 1.045 MB / 365.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1614, allocations: 0 / 365.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.1625, allocations: 0.8531 MB / 366.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.1631, allocations: 77.69 kB / 366.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.1657, allocations: 1.586 MB / 368.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.1662, allocations: 0.8792 MB / 369.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.1664, allocations: 52.55 kB / 369.3 MB, free: 9.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.927e-05/0.1665, allocations: 31.42 kB / 369.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1665, allocations: 0 / 369.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of Templates: time 0.01458/0.1811, allocations: 8.115 MB / 377.5 MB, free: 1.363 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches