Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 194.3 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 226.5 MB / 244.3 MB, free: 6.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007677/0.0007677, allocations: 107.4 kB / 296.4 MB, free: 6.785 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002023, allocations: 8 kB / 356.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1974, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.004096/0.2015, allocations: 5.42 MB / 412.9 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.204, allocations: 2.029 MB / 414.9 MB, free: 20.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003151/0.2043, allocations: 19.94 kB / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000379/0.2047, allocations: 198.8 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008587/0.2056, allocations: 0.5028 MB / 415.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.2062, allocations: 371.8 kB / 416 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006308/0.2068, allocations: 1.07 MB / 417.1 MB, free: 18.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.2079, allocations: 0.9526 MB / 418.1 MB, free: 17.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.2082, allocations: 366.5 kB / 418.4 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.2085, allocations: 449.9 kB / 418.8 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.924e-05/0.2086, allocations: 52 kB / 418.9 MB, free: 16.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.209, allocations: 211.8 kB / 419.1 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.221e-05/0.2091, allocations: 179.2 kB / 419.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2092, allocations: 209.2 kB / 419.5 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.2099, allocations: 1.083 MB / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2099, allocations: 0 / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2099, allocations: 3.938 kB / 420.6 MB, free: 14.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.2099, allocations: 0 / 420.6 MB, free: 14.65 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.002148/0.212, allocations: 1.276 MB / 421.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2121, allocations: 8.031 kB / 421.9 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/0.2143, allocations: 418.3 kB / 422.3 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006233/0.2149, allocations: 0.5452 MB / 422.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.215, allocations: 77.95 kB / 422.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.2151, allocations: 103.9 kB / 423 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.2165, allocations: 1.02 MB / 424 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.2166, allocations: 8 kB / 424 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.2166, allocations: 43.94 kB / 424.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.2167, allocations: 24 kB / 424.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.218, allocations: 0.8705 MB / 425 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00398/0.222, allocations: 3.645 MB / 428.6 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.2237, allocations: 1.898 MB / 430.5 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/0.2244, allocations: 478.3 kB / 431 MB, free: 3.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.2245, allocations: 182.8 kB / 431.1 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007044/0.2252, allocations: 0.493 MB / 431.6 MB, free: 2.973 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 2.726e-06/0.2253, allocations: 0 / 431.6 MB, free: 2.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.003827/0.2291, allocations: 1.71 MB / 433.3 MB, free: 1.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.396e-05/0.2291, allocations: 192.9 kB / 433.5 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003814/0.2295, allocations: 470 kB / 434 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.2296, allocations: 49.7 kB / 434 MB, free: 468 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001654/0.2298, allocations: 411.6 kB / 434.4 MB, free: 48 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.23, allocations: 276 kB / 434.7 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.23, allocations: 16 kB / 434.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.2302, allocations: 378.8 kB / 435.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005312/0.2307, allocations: 277.9 kB / 435.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006603/0.2314, allocations: 495.2 kB / 435.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005987/0.232, allocations: 335 kB / 436.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.232, allocations: 0 / 436.2 MB, free: 14.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001866/0.2339, allocations: 1.053 MB / 437.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.2339, allocations: 11.98 kB / 437.2 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.2339, allocations: 4 kB / 437.2 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008298/0.2348, allocations: 270.4 kB / 437.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.2353, allocations: 147.8 kB / 437.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00477/0.2401, allocations: 4.398 MB / 442.1 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.2407, allocations: 103.2 kB / 442.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/0.2408, allocations: 35.98 kB / 442.2 MB, free: 7.918 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 (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.00038/0.2412, allocations: 249.6 kB / 442.4 MB, free: 7.664 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/0.2412, allocations: 71.16 kB / 442.5 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.2431, allocations: 0.9867 MB / 443.5 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.2432, allocations: 8 kB / 443.5 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2432, allocations: 4 kB / 443.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.2432, allocations: 7.984 kB / 443.5 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.246, allocations: 1.93 MB / 445.4 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2461, allocations: 0 / 445.4 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004154/0.2465, allocations: 103.9 kB / 445.5 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007262/0.2472, allocations: 265.6 kB / 445.8 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.2473, allocations: 16 kB / 445.8 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004402/0.2517, allocations: 4.358 MB / 450.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2517, allocations: 0 / 450.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.254, allocations: 1.396 MB / 451.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.2543, allocations: 216.1 kB / 451.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.771e-05/0.2544, allocations: 23.94 kB / 451.8 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.2548, allocations: 51.91 kB / 451.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.255, allocations: 64.91 kB / 451.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.255, allocations: 31.98 kB / 451.9 MB, free: 13.74 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003303/0.2553, allocations: 314.9 kB / 452.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2554, allocations: 0 / 452.3 MB, free: 13.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009477/0.2563, allocations: 307.2 kB / 452.6 MB, free: 13.13 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 (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.0002652/0.2566, allocations: 171 kB / 452.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.2584, allocations: 1.097 MB / 453.8 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2584, allocations: 0 / 453.8 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.2594, allocations: 0.7474 MB / 454.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.26, allocations: 118.2 kB / 454.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.2628, allocations: 2.058 MB / 456.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00052/0.2633, allocations: 1.002 MB / 457.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.2635, allocations: 55.42 kB / 457.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2635, allocations: 0 / 457.8 MB, free: 7.77 MB / 330.7 MB Notification: Performance of Templates: time 0.01834/0.2819, allocations: 17.4 MB / 475.2 MB, free: 6.395 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches