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.001377/0.001377, allocations: 109.4 kB / 18.4 MB, free: 4.531 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.001399/0.001399, allocations: 189.2 kB / 19.33 MB, free: 3.605 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.353/1.353, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001346/0.001346, allocations: 43.94 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.09014, allocations: 46.62 MB / 375.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005349/0.09553, allocations: 4.19 MB / 380 MB, free: 348 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.203/0.2985, allocations: 0.9512 MB / 381 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002527/0.2988, allocations: 10.56 kB / 381 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.2991, allocations: 99.09 kB / 381.1 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.2996, allocations: 191.7 kB / 381.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.2999, allocations: 168.5 kB / 381.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006461/0.3005, allocations: 0.7315 MB / 382.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000321/0.3009, allocations: 225.7 kB / 382.4 MB, free: 9.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000296/0.3012, allocations: 286.2 kB / 382.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.3016, allocations: 329.9 kB / 383 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.391e-05/0.3017, allocations: 62.03 kB / 383.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.3019, allocations: 59.97 kB / 383.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.302, allocations: 147.3 kB / 383.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003433/0.3024, allocations: 327.6 kB / 383.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007762/0.3031, allocations: 0.7099 MB / 384.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3032, allocations: 0 / 384.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.247e-06/0.3032, allocations: 4 kB / 384.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.3032, allocations: 2 kB / 384.3 MB, free: 9.023 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.001415/0.3046, allocations: 0.9039 MB / 385.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3047, allocations: 9.094 kB / 385.2 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3048, allocations: 71.78 kB / 385.3 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.3054, allocations: 387.5 kB / 385.6 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.3054, allocations: 41.94 kB / 385.7 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.839e-05/0.3055, allocations: 50.53 kB / 385.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009508/0.3064, allocations: 0.5375 MB / 386.3 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3065, allocations: 6.219 kB / 386.3 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.801e-05/0.3065, allocations: 23.97 kB / 386.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.3066, allocations: 13.44 kB / 386.3 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007963/0.3074, allocations: 448.5 kB / 386.8 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.3099, allocations: 2.033 MB / 388.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008386/0.3108, allocations: 0.64 MB / 389.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005809/0.3114, allocations: 399.2 kB / 389.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.816e-05/0.3114, allocations: 6.25 kB / 389.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.3115, allocations: 38.16 kB / 389.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.124e-06/0.3115, allocations: 4 kB / 389.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004135/0.3156, allocations: 2.031 MB / 391.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.3157, allocations: 58.62 kB / 392 MB, free: 4.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.316, allocations: 364.5 kB / 392.3 MB, free: 4.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.3161, allocations: 35.11 kB / 392.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3162, allocations: 233.8 kB / 392.6 MB, free: 3.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.3163, allocations: 200.8 kB / 392.8 MB, free: 3.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.3165, allocations: 92.66 kB / 392.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.484e-05/0.3165, allocations: 356 kB / 393.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.3169, allocations: 163.6 kB / 393.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003391/0.3172, allocations: 217.2 kB / 393.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006229/0.3178, allocations: 382.4 kB / 394 MB, free: 3.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3178, allocations: 1.406 kB / 394 MB, free: 3.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001133/0.319, allocations: 0.6675 MB / 394.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.319, allocations: 9.562 kB / 394.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.319, allocations: 2.156 kB / 394.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006958/0.3197, allocations: 258.1 kB / 394.9 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.32, allocations: 64.02 kB / 394.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006127/0.3262, allocations: 7.502 MB / 402.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.3265, allocations: 15.91 kB / 402.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.3265, allocations: 16.39 kB / 402.5 MB, free: 11.82 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.0002482/0.3268, allocations: 170.9 kB / 402.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.617e-05/0.3269, allocations: 52.53 kB / 402.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.327, allocations: 68.17 kB / 402.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.327, allocations: 5.781 kB / 402.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/0.327, allocations: 6.094 kB / 402.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3271, allocations: 3.844 kB / 402.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.3293, allocations: 1.338 MB / 404.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3293, allocations: 1.344 kB / 404.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002887/0.3296, allocations: 60.08 kB / 404.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006479/0.3303, allocations: 264.1 kB / 404.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.3303, allocations: 12.11 kB / 404.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006315/0.3367, allocations: 7.493 MB / 411.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.3367, allocations: 1.828 kB / 411.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.3385, allocations: 1.035 MB / 413 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.3387, allocations: 165.5 kB / 413.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.957e-05/0.3388, allocations: 10.88 kB / 413.2 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.339, allocations: 21.69 kB / 413.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.3391, allocations: 50.89 kB / 413.2 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.3392, allocations: 18.39 kB / 413.2 MB, free: 3.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002774/0.3395, allocations: 253.2 kB / 413.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3395, allocations: 0 / 413.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009139/0.3404, allocations: 176.7 kB / 413.7 MB, free: 3.012 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.0001579/0.3405, allocations: 122.2 kB / 413.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.3421, allocations: 1.036 MB / 414.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3421, allocations: 0 / 414.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.3432, allocations: 0.8378 MB / 415.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.3437, allocations: 86.77 kB / 415.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.3461, allocations: 1.32 MB / 417.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.3466, allocations: 0.8812 MB / 417.9 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.069e-05/0.3467, allocations: 35.41 kB / 418 MB, free: 56 kB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3467, allocations: 0 / 418 MB, free: 56 kB / 334.1 MB Notification: Performance of Templates: time 0.01536/0.3621, allocations: 13.92 MB / 431.9 MB, free: 4.645 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/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