Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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 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.QuasiStatic.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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 97.09 kB / 17.31 MB, free: 6.391 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.001384/0.001384, allocations: 178.5 kB / 18.21 MB, free: 5.551 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.117/1.117, allocations: 223.3 MB / 242.3 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001996/0.0001996, allocations: 11.94 kB / 302.1 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07091/0.07113, allocations: 50.41 MB / 352.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005016/0.07617, allocations: 5.719 MB / 358.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002422/0.07861, allocations: 2.079 MB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.07886, allocations: 16 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004406/0.07931, allocations: 238.7 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.08048, allocations: 0.6874 MB / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006656/0.08115, allocations: 451.1 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008434/0.082, allocations: 1.117 MB / 362.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.08333, allocations: 1.057 MB / 363.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003133/0.08366, allocations: 374.3 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.08411, allocations: 461.7 kB / 364.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.345e-05/0.0842, allocations: 48 kB / 364.7 MB, free: 7.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003233/0.08453, allocations: 207.8 kB / 364.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.08467, allocations: 179.2 kB / 365.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003485/0.08502, allocations: 0.4912 MB / 365.6 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007952/0.08582, allocations: 1.063 MB / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.08583, allocations: 0 / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08584, allocations: 0 / 366.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.08585, allocations: 4 kB / 366.7 MB, free: 5.199 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002203/0.08806, allocations: 1.249 MB / 367.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.0881, allocations: 12.03 kB / 367.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001949/0.09005, allocations: 371.3 kB / 368.3 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006601/0.09072, allocations: 0.5617 MB / 368.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.148e-05/0.09078, allocations: 74.38 kB / 368.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.09092, allocations: 108.3 kB / 369 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.09245, allocations: 1.028 MB / 370 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.09248, allocations: 7.875 kB / 370 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.971e-05/0.09257, allocations: 44 kB / 370.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.09259, allocations: 24 kB / 370.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.09407, allocations: 0.8745 MB / 371 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1173/0.2114, allocations: 3.542 MB / 374.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.2131, allocations: 1.905 MB / 376.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/0.2139, allocations: 471.8 kB / 376.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.072e-05/0.214, allocations: 97.75 kB / 377 MB, free: 20.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007218/0.2147, allocations: 0.499 MB / 377.5 MB, free: 20.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.806e-06/0.2148, allocations: 0 / 377.5 MB, free: 20.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.003858/0.2186, allocations: 1.736 MB / 379.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.2187, allocations: 198.4 kB / 379.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.2191, allocations: 455.2 kB / 379.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.465e-05/0.2191, allocations: 47.44 kB / 379.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.2193, allocations: 416.3 kB / 380.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.2194, allocations: 268.4 kB / 380.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/0.2195, allocations: 81.11 kB / 380.7 MB, free: 18.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.268e-05/0.2196, allocations: 371.6 kB / 381 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.2201, allocations: 283.3 kB / 381.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.2206, allocations: 499.9 kB / 381.8 MB, free: 18.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009949/0.2216, allocations: 0.7621 MB / 382.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2217, allocations: 1.969 kB / 382.6 MB, free: 17.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001605/0.2233, allocations: 1.056 MB / 383.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.2233, allocations: 7.344 kB / 383.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2233, allocations: 6.609 kB / 383.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007469/0.2241, allocations: 275.6 kB / 383.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004923/0.2246, allocations: 145.2 kB / 384 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003794/0.2284, allocations: 4.416 MB / 388.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004895/0.2289, allocations: 101.5 kB / 388.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/0.2289, allocations: 35.22 kB / 388.6 MB, free: 13.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,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 (82): * Single equations (assignments): 80 * 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.0002519/0.2292, allocations: 246.8 kB / 388.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-05/0.2293, allocations: 68.72 kB / 388.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001731/0.231, allocations: 0.9951 MB / 389.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.231, allocations: 8.156 kB / 389.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.231, allocations: 4.156 kB / 389.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.231, allocations: 4.641 kB / 389.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002557/0.2336, allocations: 1.939 MB / 391.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2336, allocations: 1.375 kB / 391.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.234, allocations: 105 kB / 391.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006499/0.2347, allocations: 266.1 kB / 392.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.2347, allocations: 19.66 kB / 392.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00338/0.2381, allocations: 4.362 MB / 396.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2381, allocations: 0 / 396.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.2401, allocations: 1.415 MB / 398 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.2403, allocations: 207.1 kB / 398.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.2404, allocations: 25.25 kB / 398.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.2408, allocations: 48.41 kB / 398.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.2409, allocations: 73.7 kB / 398.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.241, allocations: 21.34 kB / 398.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.2412, allocations: 315.1 kB / 398.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2412, allocations: 0 / 398.7 MB, free: 6.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007865/0.242, allocations: 305.2 kB / 399 MB, free: 6.801 MB / 302.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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * 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 (57): * Single equations (assignments): 52 * 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.0001819/0.2422, allocations: 165.5 kB / 399.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.2436, allocations: 1.101 MB / 400.2 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2436, allocations: 0 / 400.2 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008372/0.2445, allocations: 0.7435 MB / 401 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.245, allocations: 118.7 kB / 401.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.247, allocations: 2.143 MB / 403.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.2473, allocations: 0.9977 MB / 404.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.2475, allocations: 51.42 kB / 404.3 MB, free: 3.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2475, allocations: 0 / 404.3 MB, free: 3.07 MB / 302.1 MB Notification: Performance of Templates: time 0.01616/0.2636, allocations: 17.1 MB / 421.4 MB, free: 2.004 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma