Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001044/0.001044, allocations: 196.1 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007692/0.0007695, allocations: 95.75 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002312/0.0002314, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1867/0.1869, allocations: 51.43 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.004138/0.1911, allocations: 5.452 MB / 417.5 MB, free: 20.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.1937, allocations: 3.285 MB / 420.8 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000298/0.194, allocations: 19.94 kB / 420.8 MB, free: 16.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.1944, allocations: 230.7 kB / 421 MB, free: 16.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000973/0.1954, allocations: 0.8415 MB / 421.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006724/0.1961, allocations: 0.6821 MB / 422.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000659/0.1968, allocations: 1.117 MB / 423.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.198, allocations: 1.441 MB / 425.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/0.1984, allocations: 378.2 kB / 425.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.1988, allocations: 473.7 kB / 426 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.815e-05/0.1989, allocations: 48 kB / 426 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003444/0.1992, allocations: 211.8 kB / 426.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1993, allocations: 183.1 kB / 426.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000282/0.1996, allocations: 0.4912 MB / 426.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008188/0.2004, allocations: 1.366 MB / 428.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.2004, allocations: 0 / 428.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2005, allocations: 4 kB / 428.3 MB, free: 9.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2005, allocations: 0 / 428.3 MB, free: 9.09 MB / 298.7 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.002061/0.2025, allocations: 1.264 MB / 429.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.2026, allocations: 12.03 kB / 429.5 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/0.2047, allocations: 411.2 kB / 429.9 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/0.2054, allocations: 0.5733 MB / 430.5 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.354e-05/0.2054, allocations: 74.38 kB / 430.6 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.2055, allocations: 100.4 kB / 430.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.2069, allocations: 1.024 MB / 431.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.381e-05/0.2069, allocations: 0 / 431.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.471e-05/0.207, allocations: 44 kB / 431.7 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.207, allocations: 24 kB / 431.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.2084, allocations: 0.8667 MB / 432.6 MB, free: 4.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003854/0.2123, allocations: 3.656 MB / 436.3 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.2142, allocations: 1.9 MB / 438.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008494/0.2151, allocations: 476.6 kB / 438.7 MB, free: 14.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001536/0.2153, allocations: 186.8 kB / 438.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008151/0.2161, allocations: 496.9 kB / 439.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=84): time 4.008e-06/0.2161, allocations: 0 / 439.3 MB, free: 13.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=84): time 0.004179/0.2203, allocations: 1.729 MB / 441 MB, free: 11.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.2204, allocations: 192.9 kB / 441.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005031/0.2209, allocations: 469.9 kB / 441.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.387e-05/0.221, allocations: 53.73 kB / 441.7 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/0.2212, allocations: 415.6 kB / 442.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.2214, allocations: 272.1 kB / 442.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.2215, allocations: 16 kB / 442.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2216, allocations: 374.8 kB / 442.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.2222, allocations: 277.9 kB / 443.1 MB, free: 9.512 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006776/0.2229, allocations: 0.4888 MB / 443.6 MB, free: 8.934 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.224, allocations: 0.7552 MB / 444.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.2241, allocations: 8 kB / 444.3 MB, free: 8.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001869/0.2259, allocations: 1.049 MB / 445.4 MB, free: 7.035 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.226, allocations: 11.94 kB / 445.4 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.226, allocations: 8 kB / 445.4 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008126/0.2268, allocations: 265.5 kB / 445.7 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005439/0.2274, allocations: 151.8 kB / 445.8 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/0.2321, allocations: 4.399 MB / 450.2 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000639/0.2328, allocations: 103.2 kB / 450.3 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.2329, allocations: 36 kB / 450.3 MB, free: 1.805 MB / 314.7 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 (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.0003766/0.2333, allocations: 253.2 kB / 450.6 MB, free: 1.551 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.2333, allocations: 67.25 kB / 450.6 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001999/0.2354, allocations: 0.9866 MB / 451.6 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.2354, allocations: 11.94 kB / 451.6 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.2354, allocations: 0 / 451.6 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.2354, allocations: 3.984 kB / 451.7 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.2383, allocations: 1.945 MB / 453.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.2384, allocations: 0 / 453.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.2388, allocations: 103.9 kB / 453.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000722/0.2395, allocations: 259.7 kB / 454 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.2396, allocations: 23.98 kB / 454 MB, free: 14.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004471/0.2441, allocations: 4.343 MB / 458.3 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2441, allocations: 0 / 458.3 MB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.2465, allocations: 1.419 MB / 459.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.2467, allocations: 208.1 kB / 459.9 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.895e-05/0.2469, allocations: 20.19 kB / 460 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.2473, allocations: 51.97 kB / 460 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.2474, allocations: 68.83 kB / 460.1 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.2475, allocations: 24 kB / 460.1 MB, free: 7.625 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003326/0.2478, allocations: 318.9 kB / 460.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2478, allocations: 0 / 460.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009106/0.2488, allocations: 315.2 kB / 460.7 MB, free: 7.008 MB / 330.7 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.0002405/0.249, allocations: 171.1 kB / 460.9 MB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.2508, allocations: 1.103 MB / 462 MB, free: 5.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2508, allocations: 0 / 462 MB, free: 5.695 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.2519, allocations: 0.7366 MB / 462.7 MB, free: 4.934 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000602/0.2525, allocations: 114.2 kB / 462.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.2553, allocations: 2.112 MB / 464.9 MB, free: 2.684 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.2558, allocations: 0.9943 MB / 465.9 MB, free: 1.664 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003305/0.2561, allocations: 85.44 kB / 466 MB, free: 1.578 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.2563, allocations: 51.42 kB / 466.1 MB, free: 1.527 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2563, allocations: 0 / 466.1 MB, free: 1.527 MB / 330.7 MB Notification: Performance of Templates: time 0.01813/0.2744, allocations: 11.53 MB / 477.6 MB, free: 6.07 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches