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.001438/0.001439, allocations: 113.2 kB / 17.69 MB, free: 5.309 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.001694/0.001694, allocations: 191 kB / 18.63 MB, free: 4.375 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.289/1.289, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009816/0.0009816, allocations: 51.39 kB / 302.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0849/0.0859, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.006711/0.09264, allocations: 6.202 MB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003109/0.09577, allocations: 2.137 MB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002983/0.09608, allocations: 23.94 kB / 359.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.0977, allocations: 0.7422 MB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001346/0.09906, allocations: 0.7572 MB / 361.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.0999, allocations: 0.4948 MB / 361.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.1009, allocations: 1.175 MB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.1019, allocations: 0.8392 MB / 363.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004187/0.1024, allocations: 454.3 kB / 364.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005737/0.103, allocations: 0.5329 MB / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.1031, allocations: 108 kB / 365 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000425/0.1035, allocations: 271.8 kB / 365.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001868/0.1037, allocations: 251.1 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004392/0.1042, allocations: 0.5443 MB / 366 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.1054, allocations: 1.444 MB / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1054, allocations: 0 / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1054, allocations: 0 / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.1054, allocations: 0 / 367.5 MB, free: 3.676 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.002715/0.1081, allocations: 1.424 MB / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1082, allocations: 8.031 kB / 368.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/0.1104, allocations: 371.3 kB / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.1112, allocations: 0.5655 MB / 369.8 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.1113, allocations: 78.38 kB / 369.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.1114, allocations: 100.3 kB / 370 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1389/0.2503, allocations: 1.024 MB / 371 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.2504, allocations: 0 / 371 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.2506, allocations: 39.8 kB / 371.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.728e-05/0.2506, allocations: 25.06 kB / 371.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.2524, allocations: 0.8516 MB / 371.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004656/0.2571, allocations: 3.494 MB / 375.4 MB, free: 22.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.2589, allocations: 1.901 MB / 377.3 MB, free: 21.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008029/0.2597, allocations: 464.6 kB / 377.8 MB, free: 21.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.974e-05/0.2598, allocations: 95.41 kB / 377.9 MB, free: 21.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007912/0.2606, allocations: 497.8 kB / 378.4 MB, free: 20.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.245e-06/0.2607, allocations: 2.516 kB / 378.4 MB, free: 20.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004283/0.2649, allocations: 1.691 MB / 380.1 MB, free: 20.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.265, allocations: 195.6 kB / 380.3 MB, free: 19.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005086/0.2655, allocations: 457.2 kB / 380.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.2656, allocations: 42.89 kB / 380.8 MB, free: 19.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.2658, allocations: 414.1 kB / 381.2 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.266, allocations: 277.9 kB / 381.4 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.2662, allocations: 153.5 kB / 381.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.909e-05/0.2663, allocations: 377 kB / 381.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.2669, allocations: 263.7 kB / 382.2 MB, free: 18.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006345/0.2675, allocations: 489.2 kB / 382.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.2687, allocations: 0.745 MB / 383.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.2687, allocations: 2.125 kB / 383.4 MB, free: 17.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001968/0.2707, allocations: 1.028 MB / 384.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.2707, allocations: 11.09 kB / 384.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.2707, allocations: 5.906 kB / 384.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008679/0.2716, allocations: 272.3 kB / 384.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/0.2722, allocations: 144.7 kB / 384.9 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005106/0.2773, allocations: 4.852 MB / 389.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.278, allocations: 97.22 kB / 389.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.2781, allocations: 36.69 kB / 389.9 MB, free: 13.25 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.0003819/0.2784, allocations: 245.8 kB / 390.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.2786, allocations: 75.03 kB / 390.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.2804, allocations: 0.9622 MB / 391.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.2804, allocations: 12.81 kB / 391.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2804, allocations: 7.172 kB / 391.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2805, allocations: 5 kB / 391.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.2832, allocations: 1.903 MB / 393.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2832, allocations: 0 / 393.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.2837, allocations: 101 kB / 393.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/0.2843, allocations: 265 kB / 393.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.2844, allocations: 15.97 kB / 393.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003948/0.2884, allocations: 4.81 MB / 398.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2884, allocations: 0 / 398.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.2905, allocations: 1.375 MB / 399.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.2908, allocations: 221 kB / 399.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.2909, allocations: 18.12 kB / 399.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/0.2913, allocations: 42.19 kB / 399.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.2914, allocations: 74.42 kB / 400 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.672e-05/0.2915, allocations: 20.62 kB / 400 MB, free: 6.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000299/0.2918, allocations: 314.8 kB / 400.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2918, allocations: 4 kB / 400.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000919/0.2927, allocations: 305.3 kB / 400.6 MB, free: 5.918 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.0001954/0.2929, allocations: 154.9 kB / 400.8 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.2945, allocations: 1.086 MB / 401.8 MB, free: 5.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.2945, allocations: 4 kB / 401.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008927/0.2954, allocations: 0.7352 MB / 402.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005796/0.296, allocations: 124.7 kB / 402.7 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.2983, allocations: 1.624 MB / 404.3 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.2986, allocations: 0.9904 MB / 405.3 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.2989, allocations: 85.33 kB / 405.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.299, allocations: 51.42 kB / 405.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.299, allocations: 0 / 405.4 MB, free: 1.844 MB / 302.1 MB Notification: Performance of Templates: time 0.01872/0.3178, allocations: 12.36 MB / 417.8 MB, free: 5.637 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 -s gbode -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) Reference file matches