Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001227, allocations: 110.2 kB / 18.25 MB, free: 4.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 225 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 51.92 kB / 281.3 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08712/0.0885, allocations: 46.63 MB / 328 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007824/0.09636, allocations: 6.255 MB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004031/0.1004, allocations: 2.177 MB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008152/0.1013, allocations: 23.88 kB / 336.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002032/0.1033, allocations: 0.75 MB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002065/0.1054, allocations: 0.7883 MB / 338 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1066, allocations: 498.7 kB / 338.4 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.1081, allocations: 1.187 MB / 339.6 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001188/0.1093, allocations: 0.8315 MB / 340.5 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.1099, allocations: 470.3 kB / 340.9 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006218/0.1105, allocations: 0.5523 MB / 341.5 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001536/0.1107, allocations: 112 kB / 341.6 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005661/0.1113, allocations: 271.8 kB / 341.8 MB, free: 6.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.1115, allocations: 251.1 kB / 342.1 MB, free: 6.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004597/0.112, allocations: 0.5481 MB / 342.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001424/0.1134, allocations: 1.444 MB / 344.1 MB, free: 4.238 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1134, allocations: 0 / 344.1 MB, free: 4.238 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1134, allocations: 0 / 344.1 MB, free: 4.238 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.1134, allocations: 0 / 344.1 MB, free: 4.238 MB / 286.1 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.002938/0.1164, allocations: 1.44 MB / 345.5 MB, free: 2.742 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1164, allocations: 12.03 kB / 345.5 MB, free: 2.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.1194, allocations: 475.2 kB / 346 MB, free: 2.266 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000856/0.1203, allocations: 0.5617 MB / 346.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/0.1204, allocations: 74.41 kB / 346.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/0.1206, allocations: 108.4 kB / 346.7 MB, free: 1.48 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.1224, allocations: 1.055 MB / 347.8 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.1224, allocations: 4 kB / 347.8 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.423e-05/0.1225, allocations: 40 kB / 347.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1226, allocations: 24 kB / 347.9 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.1243, allocations: 0.9214 MB / 348.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005412/0.1297, allocations: 3.75 MB / 352.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00264/0.1324, allocations: 2.49 MB / 355 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009286/0.1333, allocations: 475.4 kB / 355.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.1335, allocations: 89.75 kB / 355.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008552/0.1343, allocations: 0.493 MB / 356.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.384e-06/0.1343, allocations: 0 / 356.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.004499/0.1388, allocations: 1.698 MB / 357.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.139, allocations: 200.8 kB / 358 MB, free: 5.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/0.1395, allocations: 470 kB / 358.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.361e-05/0.1396, allocations: 45.69 kB / 358.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.1399, allocations: 431.4 kB / 358.9 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.1401, allocations: 280 kB / 359.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.1404, allocations: 166.5 kB / 359.3 MB, free: 4.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1405, allocations: 378.7 kB / 359.7 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/0.1411, allocations: 281.9 kB / 360 MB, free: 3.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007062/0.1418, allocations: 0.5239 MB / 360.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001253/0.1431, allocations: 0.807 MB / 361.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.1431, allocations: 0 / 361.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002118/0.1452, allocations: 1.072 MB / 362.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.1453, allocations: 8 kB / 362.4 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.1453, allocations: 11.98 kB / 362.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008924/0.1462, allocations: 269.6 kB / 362.6 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005946/0.1468, allocations: 167.7 kB / 362.8 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005327/0.1522, allocations: 4.863 MB / 367.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/0.1529, allocations: 107.2 kB / 367.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.535e-05/0.153, allocations: 40 kB / 367.8 MB, free: 11.11 MB / 318.1 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,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.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 (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.0004306/0.1534, allocations: 253.6 kB / 368.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.1536, allocations: 75.09 kB / 368.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.1555, allocations: 0.9598 MB / 369.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.1555, allocations: 8 kB / 369.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.1556, allocations: 0 / 369.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.1556, allocations: 7.969 kB / 369.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003082/0.1587, allocations: 1.951 MB / 371.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1587, allocations: 0 / 371.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004444/0.1591, allocations: 103.8 kB / 371.2 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007662/0.1599, allocations: 265.5 kB / 371.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/0.16, allocations: 24 kB / 371.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.165, allocations: 4.806 MB / 376.3 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1651, allocations: 4.062 kB / 376.3 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.1676, allocations: 1.396 MB / 377.7 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002762/0.1679, allocations: 212.1 kB / 377.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.73e-05/0.168, allocations: 16 kB / 377.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004655/0.1685, allocations: 47.97 kB / 377.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.1686, allocations: 72.84 kB / 378 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.841e-05/0.1687, allocations: 27.98 kB / 378 MB, free: 484 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003639/0.169, allocations: 322.8 kB / 378.3 MB, free: 164 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.1691, allocations: 0 / 378.3 MB, free: 164 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.1373/0.3064, allocations: 314.5 kB / 378.6 MB, free: 52.44 MB / 318.1 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,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 (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.0004319/0.3069, allocations: 150.7 kB / 378.8 MB, free: 52.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.3096, allocations: 1.143 MB / 379.9 MB, free: 52.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3097, allocations: 2.812 kB / 379.9 MB, free: 52.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001386/0.311, allocations: 0.7464 MB / 380.7 MB, free: 51.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007984/0.3119, allocations: 116.1 kB / 380.8 MB, free: 51.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.3154, allocations: 1.739 MB / 382.5 MB, free: 51.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/0.3161, allocations: 0.9943 MB / 383.5 MB, free: 50.47 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.3163, allocations: 59.38 kB / 383.6 MB, free: 50.47 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3163, allocations: 3 kB / 383.6 MB, free: 50.47 MB / 318.1 MB Notification: Performance of Templates: time 0.02392/0.3402, allocations: 17.53 MB / 401.1 MB, free: 42.42 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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