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.001144/0.001144, allocations: 96.2 kB / 16.3 MB, free: 5.992 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.001482/0.001482, allocations: 182 kB / 17.2 MB, free: 5.906 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.406/1.406, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002187, allocations: 11.06 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08065, allocations: 50.42 MB / 351.1 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005211/0.0859, allocations: 5.049 MB / 356.2 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003059/0.08898, allocations: 2.014 MB / 358.2 MB, free: 4.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003788/0.08938, allocations: 16 kB / 358.2 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004276/0.08981, allocations: 202.7 kB / 358.4 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00129/0.09112, allocations: 0.697 MB / 359.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000756/0.09188, allocations: 363.2 kB / 359.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000917/0.09281, allocations: 0.7683 MB / 360.2 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001409/0.09423, allocations: 0.9335 MB / 361.2 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/0.09463, allocations: 350.6 kB / 361.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004913/0.09513, allocations: 446 kB / 362 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.435e-05/0.09522, allocations: 48 kB / 362 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003852/0.09561, allocations: 183.7 kB / 362.2 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.09577, allocations: 175.2 kB / 362.3 MB, free: 396 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.09594, allocations: 209.2 kB / 362.6 MB, free: 180 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.09695, allocations: 1.052 MB / 363.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.09696, allocations: 0 / 363.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.09697, allocations: 0 / 363.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.097, allocations: 4 kB / 363.6 MB, free: 15.12 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.002668/0.09967, allocations: 1.26 MB / 364.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.09972, allocations: 12.03 kB / 364.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002171/0.1019, allocations: 370.4 kB / 365.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008146/0.1027, allocations: 0.5413 MB / 365.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.839e-05/0.1028, allocations: 77.98 kB / 365.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.1029, allocations: 107.9 kB / 366 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.1046, allocations: 1.008 MB / 367 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.1047, allocations: 3.984 kB / 367 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.9e-05/0.1048, allocations: 44 kB / 367 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.288e-05/0.1048, allocations: 27.95 kB / 367 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.1064, allocations: 0.8666 MB / 367.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/0.1115, allocations: 3.55 MB / 371.5 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00224/0.1137, allocations: 1.904 MB / 373.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.1138, allocations: 93.75 kB / 373.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008273/0.1147, allocations: 0.5046 MB / 374 MB, free: 4.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.404e-06/0.1147, allocations: 0 / 374 MB, free: 4.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004308/0.119, allocations: 1.673 MB / 375.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.1191, allocations: 192.9 kB / 375.8 MB, free: 2.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/0.1196, allocations: 449.9 kB / 376.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.804e-05/0.1196, allocations: 41.7 kB / 376.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002465/0.1199, allocations: 415.6 kB / 376.7 MB, free: 1.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.1201, allocations: 272.1 kB / 377 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.1201, allocations: 16 kB / 377 MB, free: 1.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1203, allocations: 378.7 kB / 377.4 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005216/0.1208, allocations: 277.8 kB / 377.6 MB, free: 396 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006762/0.1215, allocations: 491.2 kB / 378.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005921/0.1221, allocations: 335 kB / 378.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1221, allocations: 0 / 378.4 MB, free: 15.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001877/0.124, allocations: 1.053 MB / 379.5 MB, free: 14.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.124, allocations: 4 kB / 379.5 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.124, allocations: 8 kB / 379.5 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008242/0.1249, allocations: 269 kB / 379.8 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/0.1254, allocations: 151.7 kB / 379.9 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.1304, allocations: 4.479 MB / 384.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.1311, allocations: 103.2 kB / 384.5 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-05/0.1311, allocations: 39.98 kB / 384.5 MB, free: 9.109 MB / 318.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,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004129/0.1316, allocations: 241.5 kB / 384.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.1317, allocations: 71.23 kB / 384.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002069/0.1337, allocations: 1.01 MB / 385.8 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.1338, allocations: 12 kB / 385.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.1338, allocations: 3.938 kB / 385.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.609e-06/0.1338, allocations: 3.984 kB / 385.9 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002995/0.1368, allocations: 1.913 MB / 387.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.1368, allocations: 7.938 kB / 387.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.1373, allocations: 99.88 kB / 387.9 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007541/0.138, allocations: 272.3 kB / 388.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.1381, allocations: 23.95 kB / 388.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.1428, allocations: 4.417 MB / 392.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1428, allocations: 3.953 kB / 392.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.1452, allocations: 1.404 MB / 394 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/0.1455, allocations: 212 kB / 394.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.1456, allocations: 27.98 kB / 394.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/0.1461, allocations: 47.97 kB / 394.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.1463, allocations: 60.91 kB / 394.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.847e-05/0.1463, allocations: 31.98 kB / 394.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003475/0.1467, allocations: 306.9 kB / 394.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1467, allocations: 0 / 394.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001061/0.1478, allocations: 307.1 kB / 395 MB, free: 14.26 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002632/0.148, allocations: 162.8 kB / 395.1 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.1499, allocations: 1.091 MB / 396.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.15, allocations: 5.25 kB / 396.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.1511, allocations: 0.7508 MB / 397 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.1516, allocations: 102.2 kB / 397.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002812/0.1544, allocations: 1.997 MB / 399.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005594/0.1549, allocations: 1.01 MB / 400.1 MB, free: 9.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003306/0.1553, allocations: 85.33 kB / 400.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.1554, allocations: 47.42 kB / 400.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1554, allocations: 0 / 400.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01702/0.1724, allocations: 11.01 MB / 411.2 MB, free: 14.02 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches