Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.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.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001027/0.001027, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.297/1.297, allocations: 205.1 MB / 225.1 MB, free: 12.24 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.001207/0.001208, allocations: 43.94 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09023, allocations: 46.62 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007663/0.09794, allocations: 6.273 MB / 335 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003995/0.102, allocations: 2.173 MB / 337.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004214/0.1025, allocations: 19.94 kB / 337.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.1043, allocations: 0.7694 MB / 337.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001625/0.106, allocations: 0.7728 MB / 338.7 MB, free: 9.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.107, allocations: 490.8 kB / 339.2 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1083, allocations: 1.199 MB / 340.4 MB, free: 8 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.1096, allocations: 0.8392 MB / 341.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006044/0.1102, allocations: 458.4 kB / 341.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006874/0.1109, allocations: 0.5562 MB / 342.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.111, allocations: 112 kB / 342.4 MB, free: 6.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004877/0.1115, allocations: 263.8 kB / 342.6 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.1117, allocations: 259.1 kB / 342.9 MB, free: 5.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005372/0.1123, allocations: 0.548 MB / 343.4 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.1139, allocations: 1.46 MB / 344.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1139, allocations: 0 / 344.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.05e-06/0.114, allocations: 3.984 kB / 344.9 MB, free: 3.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.114, allocations: 0 / 344.9 MB, free: 3.492 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002997/0.117, allocations: 1.44 MB / 346.3 MB, free: 1.996 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.117, allocations: 16.03 kB / 346.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002993/0.12, allocations: 475.2 kB / 346.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000985/0.121, allocations: 0.5772 MB / 347.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.1211, allocations: 82.39 kB / 347.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001612/0.1213, allocations: 104.4 kB / 347.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.1231, allocations: 1.051 MB / 348.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.1231, allocations: 7.922 kB / 348.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.759e-05/0.1232, allocations: 40 kB / 348.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/0.1232, allocations: 31.94 kB / 348.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.125, allocations: 0.9135 MB / 349.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005244/0.1302, allocations: 3.707 MB / 353.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.1328, allocations: 2.49 MB / 355.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008598/0.1336, allocations: 471.5 kB / 356.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.1338, allocations: 89.75 kB / 356.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00086/0.1346, allocations: 0.493 MB / 356.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 3.366e-06/0.1346, allocations: 0 / 356.8 MB, free: 6.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.00454/0.1392, allocations: 1.705 MB / 358.5 MB, free: 5.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.1393, allocations: 188.9 kB / 358.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006362/0.14, allocations: 474 kB / 359.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.629e-05/0.1401, allocations: 41.7 kB / 359.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003771/0.1405, allocations: 439.3 kB / 359.7 MB, free: 3.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.1407, allocations: 276 kB / 359.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.141, allocations: 174.5 kB / 360.1 MB, free: 3.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1412, allocations: 382.7 kB / 360.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/0.1418, allocations: 273.9 kB / 360.7 MB, free: 2.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007338/0.1425, allocations: 0.5239 MB / 361.3 MB, free: 2.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.1438, allocations: 0.7992 MB / 362.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.1438, allocations: 0 / 362.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002044/0.1459, allocations: 1.08 MB / 363.1 MB, free: 116 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.1459, allocations: 8 kB / 363.1 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.1459, allocations: 8 kB / 363.2 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009562/0.1469, allocations: 273.6 kB / 363.4 MB, free: 15.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005965/0.1475, allocations: 163.7 kB / 363.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005646/0.1532, allocations: 4.851 MB / 368.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007723/0.154, allocations: 111.2 kB / 368.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.306e-05/0.154, allocations: 39.98 kB / 368.6 MB, free: 10.39 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004322/0.1545, allocations: 245.6 kB / 368.8 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.1546, allocations: 79.08 kB / 368.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.1566, allocations: 0.9598 MB / 369.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.1566, allocations: 8 kB / 369.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1566, allocations: 0 / 369.9 MB, free: 9.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.1566, allocations: 7.922 kB / 369.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003181/0.1598, allocations: 1.94 MB / 371.8 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1599, allocations: 0 / 371.8 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.1603, allocations: 107.8 kB / 371.9 MB, free: 6.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007774/0.1611, allocations: 261.6 kB / 372.2 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.384e-05/0.1612, allocations: 23.98 kB / 372.2 MB, free: 6.672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005276/0.1665, allocations: 4.801 MB / 377 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1665, allocations: 160 / 377 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.1691, allocations: 1.4 MB / 378.4 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1424/0.3116, allocations: 211.6 kB / 378.6 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.3118, allocations: 20.06 kB / 378.6 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.3123, allocations: 40.06 kB / 378.7 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.3125, allocations: 74.53 kB / 378.7 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/0.3125, allocations: 25.91 kB / 378.8 MB, free: 52.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003629/0.3129, allocations: 322 kB / 379.1 MB, free: 52.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3129, allocations: 0 / 379.1 MB, free: 52.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001056/0.314, allocations: 318.4 kB / 379.4 MB, free: 52.3 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002524/0.3142, allocations: 152.4 kB / 379.5 MB, free: 52.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3164, allocations: 1.111 MB / 380.7 MB, free: 51.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.3164, allocations: 0.5312 kB / 380.7 MB, free: 51.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.3175, allocations: 0.7432 MB / 381.4 MB, free: 51.71 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.3182, allocations: 120.1 kB / 381.5 MB, free: 51.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.321, allocations: 1.679 MB / 383.2 MB, free: 51.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3215, allocations: 0.9996 MB / 384.2 MB, free: 50.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000319/0.3218, allocations: 87.33 kB / 384.3 MB, free: 50.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.3219, allocations: 56.44 kB / 384.3 MB, free: 50.36 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.322, allocations: 0 / 384.3 MB, free: 50.36 MB / 318.1 MB Notification: Performance of Templates: time 0.01928/0.3412, allocations: 12.49 MB / 396.8 MB, free: 46.38 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches