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.001419/0.001419, allocations: 106.2 kB / 18.24 MB, free: 4.77 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.001421/0.001421, allocations: 195.3 kB / 19.18 MB, free: 3.84 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.464/1.464, allocations: 205.1 MB / 225 MB, free: 12.3 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.001499/0.001499, allocations: 43.94 kB / 281.3 MB, free: 3.195 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 46.64 MB / 327.9 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006014/0.1116, allocations: 4.198 MB / 332.1 MB, free: 264 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.114, allocations: 0.9549 MB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006538/0.1147, allocations: 8 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.1152, allocations: 102.9 kB / 333.2 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009673/0.1161, allocations: 198.2 kB / 333.4 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.1167, allocations: 155.8 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.1179, allocations: 0.7283 MB / 334.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005025/0.1184, allocations: 223 kB / 334.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.1189, allocations: 282.9 kB / 334.8 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005761/0.1195, allocations: 338.5 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.63e-05/0.1196, allocations: 60 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.1197, allocations: 60 kB / 335.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.1199, allocations: 143.5 kB / 335.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00033/0.1202, allocations: 330.3 kB / 335.7 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006864/0.1209, allocations: 0.6928 MB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1209, allocations: 4 kB / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1209, allocations: 0 / 336.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.1209, allocations: 0 / 336.4 MB, free: 11.99 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.001434/0.1224, allocations: 0.9119 MB / 337.3 MB, free: 11.03 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1224, allocations: 8.031 kB / 337.3 MB, free: 11.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.1226, allocations: 68.19 kB / 337.4 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004614/0.123, allocations: 385.8 kB / 337.7 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.1231, allocations: 37.69 kB / 337.8 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/0.1231, allocations: 52.38 kB / 337.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009101/0.1241, allocations: 0.5416 MB / 338.4 MB, free: 9.879 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1241, allocations: 3.938 kB / 338.4 MB, free: 9.875 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.1241, allocations: 20 kB / 338.4 MB, free: 9.855 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1242, allocations: 19.94 kB / 338.4 MB, free: 9.836 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008502/0.125, allocations: 447.7 kB / 338.9 MB, free: 9.398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.1279, allocations: 2.038 MB / 340.9 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009757/0.1288, allocations: 0.6415 MB / 341.5 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006102/0.1295, allocations: 402.2 kB / 341.9 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.1295, allocations: 8.562 kB / 341.9 MB, free: 6.203 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.1296, allocations: 43.12 kB / 342 MB, free: 6.152 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 2.896e-06/0.1296, allocations: 0 / 342 MB, free: 6.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004686/0.1343, allocations: 2.032 MB / 344 MB, free: 4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.1343, allocations: 59.97 kB / 344.1 MB, free: 3.93 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004159/0.1348, allocations: 365.7 kB / 344.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.146e-05/0.1348, allocations: 33.7 kB / 344.5 MB, free: 3.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.135, allocations: 225.2 kB / 344.7 MB, free: 3.297 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/0.1352, allocations: 209 kB / 344.9 MB, free: 3.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001676/0.1353, allocations: 90.25 kB / 345 MB, free: 2.996 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1355, allocations: 358.8 kB / 345.3 MB, free: 2.637 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003509/0.1359, allocations: 169 kB / 345.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.1362, allocations: 207.8 kB / 345.7 MB, free: 2.266 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007329/0.137, allocations: 388.8 kB / 346.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.137, allocations: 0 / 346.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001253/0.1383, allocations: 0.6733 MB / 346.7 MB, free: 1.188 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1383, allocations: 7.938 kB / 346.7 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.1383, allocations: 4.031 kB / 346.8 MB, free: 1.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007753/0.1391, allocations: 255.2 kB / 347 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.1394, allocations: 63.89 kB / 347.1 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007008/0.1464, allocations: 7.504 MB / 354.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.1468, allocations: 24.02 kB / 354.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.1468, allocations: 12.56 kB / 354.6 MB, free: 8.754 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.000278/0.1471, allocations: 169.9 kB / 354.8 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1472, allocations: 51.44 kB / 354.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.1474, allocations: 68.94 kB / 354.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1474, allocations: 8 kB / 354.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.1474, allocations: 3.938 kB / 354.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1474, allocations: 3.938 kB / 354.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.1496, allocations: 1.341 MB / 356.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1496, allocations: 0 / 356.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.1499, allocations: 59.89 kB / 356.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006692/0.1506, allocations: 263.2 kB / 356.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.1506, allocations: 8 kB / 356.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006762/0.1574, allocations: 7.512 MB / 364.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1574, allocations: 0 / 364.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.1593, allocations: 1.037 MB / 365.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.1595, allocations: 153.1 kB / 365.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.585e-05/0.1596, allocations: 12 kB / 365.3 MB, free: 13.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002826/0.1599, allocations: 19.98 kB / 365.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.16, allocations: 56.48 kB / 365.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.1601, allocations: 16 kB / 365.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002898/0.1604, allocations: 259.2 kB / 365.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1604, allocations: 3.938 kB / 365.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009725/0.1614, allocations: 176 kB / 365.8 MB, free: 12.87 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.000174/0.1616, allocations: 111.5 kB / 365.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.1634, allocations: 1.057 MB / 367 MB, free: 11.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1634, allocations: 4.062 kB / 367 MB, free: 11.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.1646, allocations: 0.8414 MB / 367.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005925/0.1652, allocations: 89.47 kB / 367.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.1677, allocations: 1.319 MB / 369.2 MB, free: 9.305 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.1682, allocations: 0.8792 MB / 370.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.1683, allocations: 35.44 kB / 370.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1684, allocations: 0 / 370.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of Templates: time 0.1848/0.3532, allocations: 13.82 MB / 383.9 MB, free: 51.89 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/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