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.0007981/0.0007981, allocations: 90.69 kB / 16.31 MB, free: 5.656 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.0008808/0.0008808, allocations: 182.7 kB / 17.21 MB, free: 5.574 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.326/1.326, allocations: 223.3 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002221/0.0002221, allocations: 8.062 kB / 300.8 MB, free: 5.637 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08602/0.08625, allocations: 50.43 MB / 351.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005623/0.09191, allocations: 5.391 MB / 356.6 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.09513, allocations: 1.967 MB / 358.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.09552, allocations: 19.94 kB / 358.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004574/0.09599, allocations: 198.8 kB / 358.8 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001255/0.09725, allocations: 0.6246 MB / 359.4 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007273/0.09799, allocations: 371.2 kB / 359.8 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.09904, allocations: 1.062 MB / 360.9 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.1005, allocations: 0.9374 MB / 361.8 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004354/0.101, allocations: 362.5 kB / 362.2 MB, free: 468 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005641/0.1015, allocations: 457.9 kB / 362.6 MB, free: 8 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.1017, allocations: 48.05 kB / 362.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004206/0.1021, allocations: 191.8 kB / 362.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.1023, allocations: 175.2 kB / 363 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.1025, allocations: 205.2 kB / 363.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009929/0.1035, allocations: 1.063 MB / 364.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1035, allocations: 0 / 364.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.127e-06/0.1035, allocations: 0 / 364.3 MB, free: 14.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1035, allocations: 3.938 kB / 364.3 MB, free: 14.32 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.002465/0.106, allocations: 1.264 MB / 365.5 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.106, allocations: 12.03 kB / 365.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002057/0.1081, allocations: 370.4 kB / 365.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008228/0.1089, allocations: 0.5374 MB / 366.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.713e-05/0.109, allocations: 74 kB / 366.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.1091, allocations: 104 kB / 366.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.1109, allocations: 1.016 MB / 367.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.891e-05/0.1109, allocations: 11.84 kB / 367.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.682e-05/0.111, allocations: 47.98 kB / 367.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.384e-05/0.111, allocations: 27.95 kB / 367.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.1126, allocations: 0.8628 MB / 368.6 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00481/0.1175, allocations: 3.558 MB / 372.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.1197, allocations: 1.91 MB / 374.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008452/0.1205, allocations: 467.6 kB / 374.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.1207, allocations: 101.7 kB / 374.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008263/0.1215, allocations: 0.4891 MB / 375.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.354e-06/0.1215, allocations: 0 / 375.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004145/0.1257, allocations: 1.71 MB / 376.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1258, allocations: 192.9 kB / 377 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004857/0.1263, allocations: 449.9 kB / 377.4 MB, free: 488 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.1263, allocations: 41.7 kB / 377.5 MB, free: 440 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.1266, allocations: 427.6 kB / 377.9 MB, free: 4 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002186/0.1269, allocations: 268.3 kB / 378.2 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.1269, allocations: 20 kB / 378.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1271, allocations: 370.8 kB / 378.5 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.1276, allocations: 277.9 kB / 378.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006735/0.1283, allocations: 499.2 kB / 379.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005997/0.1289, allocations: 323.1 kB / 379.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.129, allocations: 7.938 kB / 379.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001859/0.1308, allocations: 1.045 MB / 380.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.1308, allocations: 8 kB / 380.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1309, allocations: 8.031 kB / 380.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008281/0.1317, allocations: 272.3 kB / 380.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005301/0.1322, allocations: 147.8 kB / 381.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004921/0.1372, allocations: 4.392 MB / 385.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005641/0.1378, allocations: 111.2 kB / 385.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/0.1378, allocations: 36 kB / 385.6 MB, free: 7.887 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.000445/0.1383, allocations: 249.4 kB / 385.9 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.983e-05/0.1384, allocations: 71.2 kB / 385.9 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002016/0.1404, allocations: 0.9827 MB / 386.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1404, allocations: 8 kB / 386.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.1404, allocations: 0 / 386.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.1404, allocations: 3.984 kB / 386.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00309/0.1435, allocations: 1.933 MB / 388.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.1436, allocations: 4 kB / 388.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.144, allocations: 99.88 kB / 389 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007293/0.1447, allocations: 265.6 kB / 389.2 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.884e-05/0.1448, allocations: 16 kB / 389.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004984/0.1498, allocations: 4.359 MB / 393.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1498, allocations: 0 / 393.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.1521, allocations: 1.392 MB / 395 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.1523, allocations: 216 kB / 395.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.982e-05/0.1524, allocations: 16 kB / 395.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004007/0.1529, allocations: 51.97 kB / 395.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.153, allocations: 76.83 kB / 395.4 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.071e-05/0.1531, allocations: 23.95 kB / 395.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003463/0.1534, allocations: 314.9 kB / 395.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1534, allocations: 0 / 395.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001017/0.1545, allocations: 307.1 kB / 396 MB, free: 13.12 MB / 334.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 (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.000231/0.1547, allocations: 159.6 kB / 396.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001765/0.1565, allocations: 1.091 MB / 397.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1565, allocations: 1.25 kB / 397.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.1575, allocations: 0.747 MB / 398 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.1581, allocations: 118 kB / 398.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.161, allocations: 1.999 MB / 400.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/0.1616, allocations: 0.9942 MB / 401.1 MB, free: 7.906 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.1619, allocations: 85.33 kB / 401.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.1621, allocations: 47.42 kB / 401.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1621, allocations: 0 / 401.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of Templates: time 0.01903/0.1811, allocations: 11.04 MB / 412.3 MB, free: 12.86 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches