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.001182/0.001182, allocations: 114.5 kB / 17.73 MB, free: 5.324 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.0009972/0.0009972, allocations: 187 kB / 18.66 MB, free: 4.398 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.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001541/0.001541, allocations: 51.92 kB / 328.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1293, allocations: 46.61 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006996/0.1363, allocations: 4.193 MB / 379.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3028/0.4392, allocations: 0.9453 MB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003367/0.4396, allocations: 8.375 kB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.4399, allocations: 97.33 kB / 380.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005776/0.4405, allocations: 202.2 kB / 380.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003543/0.4409, allocations: 162.5 kB / 380.8 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007889/0.4417, allocations: 0.7338 MB / 381.5 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004036/0.4421, allocations: 228.4 kB / 381.7 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004734/0.4426, allocations: 285.8 kB / 382 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005815/0.4432, allocations: 330 kB / 382.3 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001991/0.4434, allocations: 61.75 kB / 382.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.4436, allocations: 60 kB / 382.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002907/0.4439, allocations: 144.5 kB / 382.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004998/0.4444, allocations: 330 kB / 382.9 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009629/0.4454, allocations: 0.7132 MB / 383.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4454, allocations: 0 / 383.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4454, allocations: 4 kB / 383.6 MB, free: 9.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.4454, allocations: 2.312 kB / 383.6 MB, free: 9.004 MB / 318.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.001746/0.4472, allocations: 0.9014 MB / 384.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.4472, allocations: 10.19 kB / 384.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.4474, allocations: 70.69 kB / 384.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.448, allocations: 384.9 kB / 385 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.448, allocations: 41.31 kB / 385 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-05/0.4481, allocations: 50.83 kB / 385.1 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.4491, allocations: 0.5461 MB / 385.6 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.4491, allocations: 0.7031 kB / 385.6 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.4492, allocations: 26.23 kB / 385.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.4492, allocations: 13.56 kB / 385.7 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009291/0.4502, allocations: 447.8 kB / 386.1 MB, free: 7.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.4531, allocations: 2.03 MB / 388.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008986/0.454, allocations: 0.639 MB / 388.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007077/0.4547, allocations: 398.3 kB / 389.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.855e-05/0.4548, allocations: 7.219 kB / 389.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.4548, allocations: 37.81 kB / 389.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.445e-06/0.4548, allocations: 4 kB / 389.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.005467/0.4603, allocations: 2.035 MB / 391.2 MB, free: 4.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.4603, allocations: 58.66 kB / 391.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005532/0.4609, allocations: 367.6 kB / 391.7 MB, free: 4.195 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.461, allocations: 36.39 kB / 391.7 MB, free: 4.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/0.4612, allocations: 234.3 kB / 391.9 MB, free: 3.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.4613, allocations: 197.2 kB / 392.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.4615, allocations: 97.17 kB / 392.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4617, allocations: 358 kB / 392.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.4621, allocations: 165 kB / 392.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.4626, allocations: 217 kB / 392.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008133/0.4634, allocations: 379.4 kB / 393.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4634, allocations: 0 / 393.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001432/0.4648, allocations: 0.6681 MB / 394 MB, free: 2.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4649, allocations: 9 kB / 394 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.4649, allocations: 2.078 kB / 394 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008573/0.4658, allocations: 256.7 kB / 394.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.4661, allocations: 68.45 kB / 394.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00769/0.4738, allocations: 7.5 MB / 401.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005438/0.4744, allocations: 18.11 kB / 401.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.4744, allocations: 16.41 kB / 401.8 MB, free: 11.79 MB / 334.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.0003454/0.4748, allocations: 175.9 kB / 402 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.4749, allocations: 53.84 kB / 402.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.475, allocations: 62.67 kB / 402.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.4751, allocations: 7.281 kB / 402.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.4751, allocations: 5.125 kB / 402.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4751, allocations: 2.766 kB / 402.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002595/0.4777, allocations: 1.343 MB / 403.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.4777, allocations: 1.125 kB / 403.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.4781, allocations: 52.33 kB / 403.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008255/0.4789, allocations: 263.4 kB / 403.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.4789, allocations: 13.34 kB / 403.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007889/0.4868, allocations: 7.491 MB / 411.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4869, allocations: 1.375 kB / 411.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.4892, allocations: 1.033 MB / 412.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.4895, allocations: 164.4 kB / 412.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.4896, allocations: 14.22 kB / 412.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.4898, allocations: 16.48 kB / 412.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.49, allocations: 53.16 kB / 412.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.4901, allocations: 15 kB / 412.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000355/0.4904, allocations: 256.7 kB / 412.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4904, allocations: 0 / 412.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001203/0.4917, allocations: 175.3 kB / 413 MB, free: 2.988 MB / 334.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.0002264/0.4919, allocations: 122.2 kB / 413.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.4943, allocations: 1.039 MB / 414.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4944, allocations: 0 / 414.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.4959, allocations: 0.836 MB / 415 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006724/0.4966, allocations: 85.67 kB / 415.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002805/0.4995, allocations: 1.29 MB / 416.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006266/0.5001, allocations: 0.8775 MB / 417.2 MB, free: 76 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002384/0.5003, allocations: 53.05 kB / 417.3 MB, free: 60 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.842e-05/0.5005, allocations: 33.22 kB / 417.3 MB, free: 48 kB / 334.1 MB Notification: Performance of SimCode: time 1.203e-06/0.5005, allocations: 0 / 417.3 MB, free: 48 kB / 334.1 MB Notification: Performance of Templates: time 0.02019/0.5207, allocations: 9.117 MB / 426.4 MB, free: 9.445 MB / 350.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","/var/lib/jenkins/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