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.001822/0.001822, allocations: 177.3 kB / 17.41 MB, free: 4.414 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.597/2.597, allocations: 205.4 MB / 223.6 MB, free: 9.043 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.00108/0.00108, allocations: 85.09 kB / 271.9 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004169/0.0004171, allocations: 11.94 kB / 328.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4275/0.428, allocations: 47.57 MB / 375.7 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.6107, allocations: 87.14 MB / 462.9 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003464/0.6111, allocations: 87.95 kB / 463 MB, free: 9.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0911/0.7022, allocations: 22.47 MB / 485.4 MB, free: 2.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.7023, allocations: 4 kB / 485.4 MB, free: 2.746 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001021/0.7024, allocations: 19.98 kB / 485.4 MB, free: 2.727 MB / 362.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.004959/0.7074, allocations: 1.209 MB / 486.7 MB, free: 1.461 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.336e-05/0.7075, allocations: 8.031 kB / 486.7 MB, free: 1.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003909/0.7114, allocations: 371.3 kB / 487 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.7132, allocations: 0.5576 MB / 487.6 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.7134, allocations: 78.41 kB / 487.7 MB, free: 420 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003578/0.7138, allocations: 100.4 kB / 487.8 MB, free: 320 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.7167, allocations: 1.056 MB / 488.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.7167, allocations: 15.78 kB / 488.8 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.7169, allocations: 43.98 kB / 488.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.7169, allocations: 31.98 kB / 488.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.7194, allocations: 0.9409 MB / 489.8 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.7296, allocations: 3.782 MB / 493.6 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/0.7339, allocations: 2.502 MB / 496.1 MB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/0.7358, allocations: 467.5 kB / 496.6 MB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002188/0.736, allocations: 105.7 kB / 496.7 MB, free: 6.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001601/0.7377, allocations: 0.5007 MB / 497.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 4.739e-06/0.7377, allocations: 0 / 497.2 MB, free: 6.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.008243/0.7459, allocations: 1.709 MB / 498.9 MB, free: 4.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.7462, allocations: 200.9 kB / 499.1 MB, free: 4.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.7473, allocations: 477.9 kB / 499.6 MB, free: 3.754 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.7475, allocations: 41.7 kB / 499.6 MB, free: 3.707 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005354/0.748, allocations: 427.4 kB / 0.4883 GB, free: 3.281 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/0.7485, allocations: 287.8 kB / 0.4886 GB, free: 2.996 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.7486, allocations: 20 kB / 0.4886 GB, free: 2.977 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002736/0.7489, allocations: 374.8 kB / 0.489 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.75, allocations: 285.9 kB / 0.4892 GB, free: 2.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.7513, allocations: 0.5239 MB / 0.4897 GB, free: 1.695 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.7537, allocations: 0.8227 MB / 0.4905 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.7538, allocations: 4 kB / 0.4905 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.3899/1.144, allocations: 1.089 MB / 0.4916 GB, free: 98.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.155e-05/1.144, allocations: 7.5 kB / 0.4916 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.361e-05/1.144, allocations: 8.453 kB / 0.4916 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001809/1.146, allocations: 268.1 kB / 0.4919 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/1.147, allocations: 166.3 kB / 0.492 GB, free: 98.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/1.158, allocations: 4.391 MB / 0.4963 GB, free: 96.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/1.159, allocations: 117.6 kB / 0.4964 GB, free: 96.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/1.16, allocations: 39.75 kB / 0.4965 GB, free: 96.28 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 () * Number of clocked 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.001298/1.161, allocations: 248.9 kB / 0.4967 GB, free: 96.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003557/1.162, allocations: 70.53 kB / 0.4968 GB, free: 96.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004335/1.166, allocations: 1.003 MB / 0.4978 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.129e-05/1.166, allocations: 9.672 kB / 0.4978 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/1.166, allocations: 5.125 kB / 0.4978 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.321e-05/1.166, allocations: 11.5 kB / 0.4978 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007659/1.174, allocations: 1.989 MB / 0.4997 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/1.174, allocations: 2.312 kB / 0.4997 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008494/1.175, allocations: 105.4 kB / 0.4998 GB, free: 95.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/1.176, allocations: 252.8 kB / 0.5001 GB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/1.176, allocations: 30.02 kB / 0.5001 GB, free: 95.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008638/1.185, allocations: 4.364 MB / 0.5044 GB, free: 92.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/1.185, allocations: 1.062 kB / 0.5044 GB, free: 92.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004884/1.19, allocations: 1.428 MB / 0.5058 GB, free: 92.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000612/1.191, allocations: 217.6 kB / 0.506 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/1.191, allocations: 18.03 kB / 0.506 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/1.192, allocations: 52.33 kB / 0.506 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/1.192, allocations: 70.89 kB / 0.5061 GB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.793e-05/1.192, allocations: 25.89 kB / 0.5061 GB, free: 92.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007387/1.193, allocations: 314.3 kB / 0.5064 GB, free: 92.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.193, allocations: 0 / 0.5064 GB, free: 92.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002565/1.196, allocations: 324 kB / 0.5067 GB, free: 92.39 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) * Number of clocked states: 0 () * 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.0007667/1.196, allocations: 172.2 kB / 0.5069 GB, free: 92.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004385/1.201, allocations: 1.13 MB / 0.508 GB, free: 91.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/1.201, allocations: 5.422 kB / 0.508 GB, free: 91.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/1.203, allocations: 0.7534 MB / 0.5087 GB, free: 91.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/1.205, allocations: 113.9 kB / 0.5088 GB, free: 91.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006077/1.211, allocations: 2.101 MB / 0.5109 GB, free: 90.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009055/1.212, allocations: 0.9969 MB / 0.5119 GB, free: 89.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/1.212, allocations: 63.86 kB / 0.5119 GB, free: 89.32 MB / 378.7 MB Notification: Performance of SimCode: time 4.248e-06/1.212, allocations: 0 / 0.5119 GB, free: 89.32 MB / 378.7 MB Notification: Performance of Templates: time 0.04059/1.253, allocations: 17.45 MB / 0.529 GB, free: 83.23 MB / 378.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) "" 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