Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001594/0.001594, allocations: 109.1 kB / 16.51 MB, free: 6.707 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.001735/0.001735, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.573/1.573, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 46.41 kB / 299.9 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1229, allocations: 49.45 MB / 349.4 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005674/0.1286, allocations: 4.273 MB / 353.7 MB, free: 376 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.1304, allocations: 0.9191 MB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.1307, allocations: 12 kB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.131, allocations: 71.44 kB / 354.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004493/0.1314, allocations: 166.6 kB / 354.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.1318, allocations: 139.9 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006955/0.1325, allocations: 0.7205 MB / 355.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003463/0.1328, allocations: 192.1 kB / 355.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1332, allocations: 258.9 kB / 356.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.1336, allocations: 318.5 kB / 356.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.854e-05/0.1337, allocations: 47.94 kB / 356.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.865e-05/0.1338, allocations: 44 kB / 356.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.134, allocations: 131.5 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.1343, allocations: 302.4 kB / 357 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006696/0.1349, allocations: 0.6694 MB / 357.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.135, allocations: 0 / 357.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.135, allocations: 4 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.135, allocations: 0 / 357.6 MB, free: 12.38 MB / 302.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.001654/0.1367, allocations: 0.908 MB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.435e-05/0.1367, allocations: 12.03 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.1369, allocations: 76.02 kB / 358.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.1373, allocations: 374 kB / 359 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.33e-05/0.1375, allocations: 45.62 kB / 359 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.891e-05/0.1375, allocations: 52.38 kB / 359.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009312/0.1385, allocations: 0.5454 MB / 359.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.1385, allocations: 4 kB / 359.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.1386, allocations: 20 kB / 359.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.1386, allocations: 12 kB / 359.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.1394, allocations: 447.7 kB / 360.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/0.1425, allocations: 2.042 MB / 362.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009182/0.1434, allocations: 0.6376 MB / 362.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.1441, allocations: 410 kB / 363.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.1441, allocations: 8.562 kB / 363.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.1442, allocations: 39.12 kB / 363.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.565e-06/0.1442, allocations: 0 / 363.2 MB, free: 6.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.00472/0.1489, allocations: 2.036 MB / 365.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.149, allocations: 59.97 kB / 365.3 MB, free: 4.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004122/0.1494, allocations: 357.7 kB / 365.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.1494, allocations: 37.7 kB / 365.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.1496, allocations: 229.1 kB / 365.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.1498, allocations: 197.1 kB / 366.1 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.1499, allocations: 94.19 kB / 366.2 MB, free: 3.395 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1501, allocations: 362.7 kB / 366.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.1504, allocations: 169 kB / 366.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.1509, allocations: 215.8 kB / 366.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008466/0.1517, allocations: 372.9 kB / 367.3 MB, free: 2.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1517, allocations: 4 kB / 367.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001286/0.153, allocations: 0.6695 MB / 368 MB, free: 1.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.153, allocations: 7.938 kB / 368 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1531, allocations: 0 / 368 MB, free: 1.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007617/0.1538, allocations: 267.1 kB / 368.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.1542, allocations: 59.98 kB / 368.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.219/0.3732, allocations: 6.761 MB / 375.1 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.3737, allocations: 21.25 kB / 375.1 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.3738, allocations: 20.94 kB / 375.1 MB, free: 20.48 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.0002796/0.374, allocations: 169.8 kB / 375.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3742, allocations: 48.5 kB / 375.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.3743, allocations: 68.17 kB / 375.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3743, allocations: 6.219 kB / 375.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3743, allocations: 1.531 kB / 375.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.537e-06/0.3743, allocations: 7.266 kB / 375.4 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.3771, allocations: 1.339 MB / 376.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.3772, allocations: 0 / 376.7 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003263/0.3775, allocations: 63.06 kB / 376.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008757/0.3784, allocations: 260.1 kB / 377.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.574e-05/0.3784, allocations: 12.02 kB / 377.1 MB, free: 19.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005702/0.3842, allocations: 6.786 MB / 383.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3842, allocations: 0 / 383.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.3862, allocations: 1.026 MB / 384.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.3865, allocations: 162.2 kB / 385 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.668e-05/0.3866, allocations: 11.53 kB / 385.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002751/0.3869, allocations: 20.78 kB / 385.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.3871, allocations: 58.7 kB / 385.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.492e-05/0.3872, allocations: 14.28 kB / 385.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000302/0.3875, allocations: 256.7 kB / 385.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3875, allocations: 0 / 385.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001104/0.3886, allocations: 171 kB / 385.6 MB, free: 12.48 MB / 302.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.0001692/0.3888, allocations: 112.2 kB / 385.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.3906, allocations: 1.028 MB / 386.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3906, allocations: 4.062 kB / 386.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3918, allocations: 0.8365 MB / 387.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.3924, allocations: 88.23 kB / 387.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.3954, allocations: 1.486 MB / 389.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.3958, allocations: 0.8758 MB / 390 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.3961, allocations: 50 kB / 390 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.145e-05/0.3962, allocations: 27.97 kB / 390.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3962, allocations: 0 / 390.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Templates: time 0.01858/0.4148, allocations: 8.217 MB / 398.3 MB, free: 6.574 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches