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.001076/0.001076, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.66/1.66, allocations: 226.6 MB / 244.7 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008078/0.0008078, allocations: 100.5 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002444/0.0002444, allocations: 8 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 51.29 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.003988/0.243, allocations: 5.443 MB / 413.5 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.2456, allocations: 2.024 MB / 415.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003841/0.246, allocations: 23.44 kB / 415.5 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004402/0.2464, allocations: 198.8 kB / 415.7 MB, free: 20.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009638/0.2474, allocations: 0.497 MB / 416.2 MB, free: 19.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.2481, allocations: 379.2 kB / 416.6 MB, free: 19.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000717/0.2488, allocations: 1.078 MB / 417.7 MB, free: 18.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.25, allocations: 1.034 MB / 418.7 MB, free: 16.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.2504, allocations: 370.4 kB / 419.1 MB, free: 16.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.2508, allocations: 461.9 kB / 419.5 MB, free: 16.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.312e-05/0.2509, allocations: 48 kB / 419.6 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003853/0.2513, allocations: 207.9 kB / 419.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.2514, allocations: 175.2 kB / 419.9 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000293/0.2517, allocations: 483.3 kB / 420.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006795/0.2524, allocations: 1.083 MB / 421.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2524, allocations: 0 / 421.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2524, allocations: 0 / 421.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.2524, allocations: 0 / 421.5 MB, free: 14.18 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.002157/0.2546, allocations: 1.268 MB / 422.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2546, allocations: 12.03 kB / 422.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002136/0.2567, allocations: 415.2 kB / 423.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006599/0.2574, allocations: 0.5694 MB / 423.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.2575, allocations: 78.36 kB / 423.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.2576, allocations: 100.3 kB / 423.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.259, allocations: 1.02 MB / 424.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.899e-05/0.2591, allocations: 7.984 kB / 425 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-05/0.2592, allocations: 39.94 kB / 425 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.2592, allocations: 24 kB / 425 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.2605, allocations: 0.8705 MB / 425.9 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.2647, allocations: 3.656 MB / 429.5 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.2665, allocations: 1.9 MB / 431.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007776/0.2673, allocations: 471.4 kB / 431.9 MB, free: 3.211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.2674, allocations: 174.9 kB / 432.1 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007483/0.2682, allocations: 0.4969 MB / 432.6 MB, free: 2.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 4.058e-06/0.2682, allocations: 0 / 432.6 MB, free: 2.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.003881/0.2721, allocations: 1.721 MB / 434.3 MB, free: 0.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.2721, allocations: 204.8 kB / 434.5 MB, free: 476 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000412/0.2726, allocations: 469.9 kB / 434.9 MB, free: 15.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.736e-05/0.2726, allocations: 45.64 kB / 435 MB, free: 15.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/0.2729, allocations: 419.7 kB / 435.4 MB, free: 15.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.2731, allocations: 272.1 kB / 435.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.2732, allocations: 16 kB / 435.7 MB, free: 15.24 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2733, allocations: 370.8 kB / 436 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.2738, allocations: 289.8 kB / 436.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006622/0.2745, allocations: 495.2 kB / 436.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.2757, allocations: 0.7552 MB / 437.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2757, allocations: 0 / 437.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001902/0.2776, allocations: 1.049 MB / 438.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.2777, allocations: 11.94 kB / 438.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.2777, allocations: 8.047 kB / 438.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008769/0.2786, allocations: 268.9 kB / 438.9 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005479/0.2791, allocations: 147.7 kB / 439 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004837/0.284, allocations: 4.401 MB / 443.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000586/0.2846, allocations: 103.2 kB / 443.5 MB, free: 6.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.818e-05/0.2847, allocations: 39.98 kB / 443.6 MB, free: 6.891 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.0004289/0.2851, allocations: 237.6 kB / 443.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.793e-05/0.2852, allocations: 67.25 kB / 443.9 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001919/0.2871, allocations: 0.9906 MB / 444.9 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.2871, allocations: 11.94 kB / 444.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.2872, allocations: 4 kB / 444.9 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.2872, allocations: 3.984 kB / 444.9 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002879/0.2901, allocations: 1.933 MB / 446.8 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2901, allocations: 4 kB / 446.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.2906, allocations: 107.9 kB / 446.9 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007324/0.2913, allocations: 263.9 kB / 447.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.787e-05/0.2914, allocations: 16 kB / 447.2 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004481/0.2959, allocations: 4.359 MB / 451.6 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2959, allocations: 0 / 451.6 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00238/0.2983, allocations: 1.4 MB / 453 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.2985, allocations: 216.1 kB / 453.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.2986, allocations: 16 kB / 453.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004479/0.2991, allocations: 55.95 kB / 453.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.2993, allocations: 68.91 kB / 453.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.2993, allocations: 23.98 kB / 453.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003487/0.2997, allocations: 318.9 kB / 453.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2997, allocations: 0 / 453.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009837/0.3007, allocations: 315.2 kB / 454 MB, free: 12.11 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.0002657/0.3009, allocations: 167 kB / 454.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.3028, allocations: 1.092 MB / 455.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3028, allocations: 0 / 455.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3039, allocations: 0.7441 MB / 456 MB, free: 10.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006527/0.3046, allocations: 127.2 kB / 456.1 MB, free: 9.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.3074, allocations: 2.056 MB / 458.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004953/0.3079, allocations: 0.9981 MB / 459.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.3081, allocations: 55.42 kB / 459.2 MB, free: 6.75 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3081, allocations: 3.938 kB / 459.2 MB, free: 6.746 MB / 330.7 MB Notification: Performance of Templates: time 0.01944/0.3275, allocations: 17.37 MB / 476.6 MB, free: 5.406 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) "" Variables in the reference:time,voltageQS.pin_p.reference.gamma,iAC.mean1.y,iAC.mean2.y,iDC2.mean.y Variables in the result:iAC.mean1.y,iAC.mean2.y,iDC2.mean.y,time,voltageQS.pin_p.reference.gamma