Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001513/0.001513, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 98.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.046e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4253/0.5455, allocations: 86.96 MB / 456 MB, free: 6.367 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002965/0.5459, allocations: 83.64 kB / 456.1 MB, free: 6.324 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09152/0.6374, allocations: 22.47 MB / 478.6 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6375, allocations: 0 / 478.6 MB, free: 1.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.689e-05/0.6375, allocations: 16 kB / 478.6 MB, free: 1.496 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003794/0.6413, allocations: 1.15 MB / 479.8 MB, free: 300 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.6414, allocations: 8.031 kB / 479.8 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003449/0.6449, allocations: 378.3 kB / 480.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.6464, allocations: 0.5411 MB / 480.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.734e-05/0.6465, allocations: 77.97 kB / 480.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/0.6468, allocations: 100 kB / 480.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/0.6496, allocations: 1.001 MB / 481.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.6497, allocations: 0 / 481.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.6499, allocations: 51.92 kB / 481.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.395e-05/0.6499, allocations: 24 kB / 481.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.6527, allocations: 0.8474 MB / 482.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009719/0.6625, allocations: 3.781 MB / 486.6 MB, free: 9.207 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003963/0.6665, allocations: 2.457 MB / 489 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.6679, allocations: 428 kB / 489.4 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001774/0.6681, allocations: 93.89 kB / 489.5 MB, free: 5.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.6692, allocations: 465.5 kB / 490 MB, free: 5.371 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 5.641e-06/0.6692, allocations: 0 / 490 MB, free: 5.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.002777/0.672, allocations: 0.841 MB / 490.8 MB, free: 4.516 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.6722, allocations: 196.7 kB / 491 MB, free: 4.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007853/0.673, allocations: 411.8 kB / 491.4 MB, free: 3.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.6731, allocations: 45.69 kB / 491.5 MB, free: 3.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004222/0.6735, allocations: 465.9 kB / 491.9 MB, free: 3.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000321/0.6739, allocations: 279.9 kB / 492.2 MB, free: 3.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.099e-05/0.6739, allocations: 20 kB / 492.2 MB, free: 3.062 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.6741, allocations: 354.8 kB / 492.6 MB, free: 2.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007118/0.6748, allocations: 245.9 kB / 492.8 MB, free: 2.469 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009247/0.6758, allocations: 484.8 kB / 493.3 MB, free: 1.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008558/0.6767, allocations: 312.7 kB / 493.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.6767, allocations: 0 / 493.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002834/0.6795, allocations: 0.9784 MB / 494.6 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.6796, allocations: 8 kB / 494.6 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.6796, allocations: 4 kB / 494.6 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001436/0.6811, allocations: 283.6 kB / 494.8 MB, free: 304 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.6823, allocations: 159.8 kB / 495 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008041/0.6904, allocations: 4.39 MB / 499.4 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.6918, allocations: 115.1 kB / 499.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.692, allocations: 36 kB / 499.5 MB, free: 11.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003609/0.6923, allocations: 168.7 kB / 499.7 MB, free: 11.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.6926, allocations: 67.23 kB / 499.8 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00307/0.6957, allocations: 0.9154 MB / 0.4889 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.6957, allocations: 12 kB / 0.489 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6957, allocations: 0 / 0.489 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-05/0.6958, allocations: 11.92 kB / 0.489 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004846/0.7006, allocations: 1.894 MB / 0.4908 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.7007, allocations: 4 kB / 0.4908 GB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008983/0.7016, allocations: 108 kB / 0.4909 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/0.7029, allocations: 257.7 kB / 0.4912 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.7031, allocations: 19.98 kB / 0.4912 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007349/0.7105, allocations: 4.343 MB / 0.4954 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.7105, allocations: 0 / 0.4954 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.7142, allocations: 1.314 MB / 0.4967 GB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005232/0.7148, allocations: 212.1 kB / 0.4969 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001573/0.7149, allocations: 19.98 kB / 0.4969 GB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008341/0.7158, allocations: 55.97 kB / 0.497 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/0.716, allocations: 64.62 kB / 0.4971 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.131e-05/0.7161, allocations: 31.98 kB / 0.4971 GB, free: 1.422 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005916/0.7167, allocations: 309.6 kB / 0.4974 GB, free: 1.121 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7168, allocations: 4 kB / 0.4974 GB, free: 1.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001557/0.7183, allocations: 323.2 kB / 0.4977 GB, free: 0.8008 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * 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.0004186/0.7188, allocations: 175.8 kB / 0.4979 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.7216, allocations: 1.038 MB / 0.4989 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.7216, allocations: 1.312 kB / 0.4989 GB, free: 15.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.7235, allocations: 0.7104 MB / 0.4996 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009237/0.7244, allocations: 107.6 kB / 0.4997 GB, free: 14.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006757/0.7312, allocations: 1.769 MB / 0.5014 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007633/0.732, allocations: 1.018 MB / 0.5024 GB, free: 11.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/0.7324, allocations: 59.42 kB / 0.5024 GB, free: 11.81 MB / 394.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7324, allocations: 0 / 0.5024 GB, free: 11.81 MB / 394.7 MB Notification: Performance of Templates: time 0.03401/0.7664, allocations: 16.81 MB / 0.5189 GB, free: 10.97 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches