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.00212/0.00212, allocations: 107.9 kB / 17.16 MB, free: 6.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.002364/0.002364, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.456/2.456, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 51.92 kB / 300.6 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2054, allocations: 49.44 MB / 350.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.01268/0.2182, allocations: 6.218 MB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007013/0.2252, allocations: 2.102 MB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.2267, allocations: 19.94 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003381/0.2302, allocations: 0.6936 MB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003687/0.2339, allocations: 0.6935 MB / 359.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.2361, allocations: 455.1 kB / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.239, allocations: 1.105 MB / 361.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/0.2415, allocations: 0.6821 MB / 362 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.2427, allocations: 414.3 kB / 362.4 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001283/0.2441, allocations: 0.5093 MB / 362.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000255/0.2443, allocations: 68 kB / 363 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2455, allocations: 227.8 kB / 363.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003302/0.2458, allocations: 207 kB / 363.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009749/0.2468, allocations: 0.4974 MB / 363.9 MB, free: 6.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00205/0.2489, allocations: 1.095 MB / 365 MB, free: 5.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.2489, allocations: 4 kB / 365 MB, free: 5.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.2489, allocations: 0 / 365 MB, free: 5.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.987e-05/0.249, allocations: 0 / 365 MB, free: 5.82 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.005826/0.2548, allocations: 1.424 MB / 366.4 MB, free: 4.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.323e-05/0.2549, allocations: 8.031 kB / 366.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004351/0.2593, allocations: 371.3 kB / 366.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001863/0.2612, allocations: 0.5501 MB / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2614, allocations: 74.38 kB / 367.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003038/0.2617, allocations: 104.3 kB / 367.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003272/0.265, allocations: 1.024 MB / 368.6 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.2651, allocations: 0 / 368.6 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001585/0.2652, allocations: 40 kB / 368.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-05/0.2653, allocations: 24 kB / 368.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003223/0.2685, allocations: 0.851 MB / 369.5 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3009/0.5694, allocations: 3.536 MB / 373 MB, free: 23.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003812/0.5733, allocations: 1.901 MB / 374.9 MB, free: 21.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/0.575, allocations: 456.5 kB / 375.4 MB, free: 21.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001816/0.5752, allocations: 99.39 kB / 375.5 MB, free: 21.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001537/0.5767, allocations: 499.5 kB / 375.9 MB, free: 21.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 5.47e-06/0.5768, allocations: 0 / 375.9 MB, free: 21.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.008193/0.585, allocations: 1.686 MB / 377.6 MB, free: 20.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.5852, allocations: 195.8 kB / 377.8 MB, free: 20.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.5862, allocations: 463.1 kB / 378.3 MB, free: 20.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.5863, allocations: 42.42 kB / 378.3 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004213/0.5868, allocations: 411.3 kB / 378.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003539/0.5871, allocations: 279.2 kB / 379 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004033/0.5876, allocations: 155.3 kB / 379.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.5878, allocations: 373.1 kB / 379.5 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009055/0.5887, allocations: 267.6 kB / 379.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.5898, allocations: 488.1 kB / 380.2 MB, free: 18.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.5918, allocations: 0.7376 MB / 381 MB, free: 18.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.5919, allocations: 2.062 kB / 381 MB, free: 18.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.003607/0.5955, allocations: 1.03 MB / 382 MB, free: 18.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.5956, allocations: 11.44 kB / 382 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.5956, allocations: 7.547 kB / 382 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.5971, allocations: 273.8 kB / 382.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.5981, allocations: 140.9 kB / 382.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007954/0.6061, allocations: 4.399 MB / 386.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.6074, allocations: 98.72 kB / 386.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.6076, allocations: 31.89 kB / 387 MB, free: 14.3 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.0007646/0.6083, allocations: 252.5 kB / 387.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002859/0.6086, allocations: 65.19 kB / 387.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.6121, allocations: 0.9736 MB / 388.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.73e-05/0.6122, allocations: 11.31 kB / 388.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.6122, allocations: 1.156 kB / 388.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.14e-05/0.6123, allocations: 4.219 kB / 388.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006251/0.6185, allocations: 1.908 MB / 390.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.6186, allocations: 4.031 kB / 390.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.6194, allocations: 99.97 kB / 390.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001448/0.6209, allocations: 266.2 kB / 390.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.621, allocations: 19.19 kB / 390.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00766/0.6287, allocations: 4.351 MB / 394.9 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.6288, allocations: 5.219 kB / 394.9 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003977/0.6327, allocations: 1.371 MB / 396.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005244/0.6333, allocations: 213.7 kB / 396.5 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.6335, allocations: 21.47 kB / 396.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007819/0.6343, allocations: 48.34 kB / 396.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.6346, allocations: 70.69 kB / 396.6 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.024e-05/0.6347, allocations: 28.36 kB / 396.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005985/0.6353, allocations: 314.4 kB / 397 MB, free: 7.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6353, allocations: 1.781 kB / 397 MB, free: 7.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002011/0.6373, allocations: 301.6 kB / 397.2 MB, free: 7.809 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.0004479/0.6378, allocations: 145.6 kB / 397.4 MB, free: 7.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.6415, allocations: 1.076 MB / 398.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.6416, allocations: 5.656 kB / 398.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.6435, allocations: 0.7305 MB / 399.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.6449, allocations: 114.8 kB / 399.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005086/0.65, allocations: 2.102 MB / 401.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007293/0.6507, allocations: 0.9939 MB / 402.4 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003142/0.6511, allocations: 58.78 kB / 402.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6511, allocations: 0 / 402.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of Templates: time 0.03651/0.6876, allocations: 17.2 MB / 419.7 MB, free: 3.465 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