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.001304/0.001304, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.002224/0.002224, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.525/1.525, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 47.75 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1364, allocations: 49.44 MB / 350 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006885/0.1434, allocations: 4.252 MB / 354.3 MB, free: 140 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.1457, allocations: 0.919 MB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006247/0.1463, allocations: 8 kB / 355.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.1468, allocations: 99 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008101/0.1477, allocations: 194.3 kB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1481, allocations: 159.8 kB / 355.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007813/0.1489, allocations: 0.7283 MB / 356.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004004/0.1493, allocations: 227 kB / 356.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.1497, allocations: 286.9 kB / 356.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.1501, allocations: 322.6 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.813e-05/0.1502, allocations: 60 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.924e-05/0.1503, allocations: 64 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.1505, allocations: 151.4 kB / 357.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.1508, allocations: 334.3 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006715/0.1515, allocations: 0.6967 MB / 358.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1515, allocations: 4 kB / 358.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1515, allocations: 0 / 358.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.1515, allocations: 0 / 358.5 MB, free: 11.9 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.001567/0.1531, allocations: 0.9041 MB / 359.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1532, allocations: 15.97 kB / 359.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1533, allocations: 72.09 kB / 359.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.1538, allocations: 374 kB / 359.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.1539, allocations: 37.69 kB / 359.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.467e-05/0.154, allocations: 52.38 kB / 360 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009285/0.1549, allocations: 0.5493 MB / 360.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1549, allocations: 0 / 360.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.155, allocations: 20 kB / 360.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.155, allocations: 16 kB / 360.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008513/0.1559, allocations: 447.6 kB / 361 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.1591, allocations: 2.038 MB / 363 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.1601, allocations: 0.6464 MB / 363.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005725/0.1607, allocations: 402.1 kB / 364.1 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.212e-05/0.1607, allocations: 8.562 kB / 364.1 MB, free: 6.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.1608, allocations: 39.12 kB / 364.1 MB, free: 6.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 3.056e-06/0.1608, allocations: 4 kB / 364.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004715/0.1655, allocations: 2.028 MB / 366.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.1656, allocations: 59.97 kB / 366.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003847/0.166, allocations: 361.7 kB / 366.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.166, allocations: 37.69 kB / 366.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.1662, allocations: 241 kB / 366.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.1664, allocations: 205.1 kB / 367 MB, free: 3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.1666, allocations: 86.25 kB / 367.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1668, allocations: 354.8 kB / 367.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.1672, allocations: 173 kB / 367.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003496/0.1675, allocations: 211.8 kB / 367.8 MB, free: 2.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.1682, allocations: 380.9 kB / 368.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1683, allocations: 0 / 368.2 MB, free: 1.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001273/0.1695, allocations: 0.6695 MB / 368.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.1696, allocations: 7.938 kB / 368.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1696, allocations: 0 / 368.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008332/0.1704, allocations: 259.2 kB / 369.1 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.1708, allocations: 63.95 kB / 369.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1854/0.3562, allocations: 7.496 MB / 376.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000488/0.3567, allocations: 16.97 kB / 376.7 MB, free: 20.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-05/0.3568, allocations: 17.33 kB / 376.7 MB, free: 20.04 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.0003391/0.3571, allocations: 178.5 kB / 376.9 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.3573, allocations: 49 kB / 376.9 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.3574, allocations: 63.31 kB / 377 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3574, allocations: 5.875 kB / 377 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.3574, allocations: 5.281 kB / 377 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.3575, allocations: 4.422 kB / 377 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002496/0.36, allocations: 1.347 MB / 378.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.36, allocations: 0 / 378.4 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.3603, allocations: 55.78 kB / 378.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006865/0.361, allocations: 255.9 kB / 378.7 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.684e-05/0.361, allocations: 13.66 kB / 378.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005721/0.3668, allocations: 7.518 MB / 386.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3668, allocations: 0.5 kB / 386.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.3686, allocations: 1.026 MB / 387.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.3689, allocations: 158 kB / 387.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.3689, allocations: 10.91 kB / 387.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.3692, allocations: 25.73 kB / 387.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.3694, allocations: 56.67 kB / 387.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.3694, allocations: 16.03 kB / 387.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003392/0.3698, allocations: 256.3 kB / 387.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3698, allocations: 0 / 387.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3709, allocations: 175.8 kB / 387.9 MB, free: 11.32 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.0001722/0.371, allocations: 113.1 kB / 388 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.3729, allocations: 1.06 MB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3729, allocations: 4.062 kB / 389.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.3741, allocations: 0.8457 MB / 389.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005857/0.3747, allocations: 85.27 kB / 390 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00281/0.3775, allocations: 1.262 MB / 391.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006939/0.3782, allocations: 0.8765 MB / 392.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002548/0.3785, allocations: 54.34 kB / 392.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3786, allocations: 32.72 kB / 392.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3786, allocations: 0 / 392.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of Templates: time 0.02012/0.3987, allocations: 8.964 MB / 401.2 MB, free: 5.109 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