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.00127/0.00127, allocations: 114.5 kB / 17.93 MB, free: 5.566 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.001001/0.001001, allocations: 189.9 kB / 18.86 MB, free: 4.645 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.342/1.342, allocations: 205.1 MB / 224.7 MB, free: 12.36 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.001269/0.001269, allocations: 43.94 kB / 280.8 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09493, allocations: 46.63 MB / 327.4 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.00727/0.1022, allocations: 6.246 MB / 333.7 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00365/0.1059, allocations: 2.134 MB / 335.8 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000758/0.1067, allocations: 27.88 kB / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001857/0.1086, allocations: 0.6847 MB / 336.5 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.1105, allocations: 0.7191 MB / 337.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009903/0.1115, allocations: 447 kB / 337.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.1129, allocations: 1.183 MB / 338.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.1141, allocations: 0.8705 MB / 339.7 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006106/0.1148, allocations: 462.3 kB / 340.2 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007358/0.1155, allocations: 0.5484 MB / 340.7 MB, free: 7.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.1157, allocations: 112 kB / 340.8 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005026/0.1162, allocations: 275.8 kB / 341.1 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.1164, allocations: 251.1 kB / 341.4 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004818/0.1169, allocations: 0.5519 MB / 341.9 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.118, allocations: 1.118 MB / 343 MB, free: 5.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.118, allocations: 0 / 343 MB, free: 5.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.118, allocations: 0 / 343 MB, free: 5.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.118, allocations: 0 / 343 MB, free: 5.09 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.00292/0.1209, allocations: 1.444 MB / 344.5 MB, free: 3.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.121, allocations: 12.03 kB / 344.5 MB, free: 3.578 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002914/0.1239, allocations: 471.2 kB / 344.9 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007849/0.1247, allocations: 0.5694 MB / 345.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.759e-05/0.1248, allocations: 74.41 kB / 345.6 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.1249, allocations: 112.4 kB / 345.7 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/0.1267, allocations: 1.051 MB / 346.8 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.1267, allocations: 4 kB / 346.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.066e-05/0.1268, allocations: 43.98 kB / 346.8 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.1269, allocations: 27.98 kB / 346.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.1285, allocations: 0.9174 MB / 347.7 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00515/0.1337, allocations: 3.75 MB / 351.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.1364, allocations: 2.486 MB / 354 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008828/0.1373, allocations: 475.5 kB / 354.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.1374, allocations: 89.75 kB / 354.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008403/0.1383, allocations: 0.493 MB / 355 MB, free: 8.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.475e-06/0.1383, allocations: 7.938 kB / 355 MB, free: 8.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=86): time 0.00434/0.1427, allocations: 1.697 MB / 356.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/0.1428, allocations: 188.9 kB / 356.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000525/0.1433, allocations: 474 kB / 357.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.061e-05/0.1434, allocations: 45.7 kB / 357.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.1437, allocations: 439.4 kB / 357.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.1439, allocations: 276 kB / 358.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/0.1441, allocations: 166.5 kB / 358.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1443, allocations: 382.7 kB / 358.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005397/0.1448, allocations: 273.9 kB / 358.9 MB, free: 4.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006956/0.1455, allocations: 0.52 MB / 359.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.1468, allocations: 0.807 MB / 360.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1468, allocations: 0 / 360.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002003/0.1488, allocations: 1.076 MB / 361.3 MB, free: 1.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.1488, allocations: 8 kB / 361.3 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.1488, allocations: 8 kB / 361.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008387/0.1497, allocations: 277.8 kB / 361.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005813/0.1503, allocations: 159.7 kB / 361.8 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005507/0.1558, allocations: 4.863 MB / 366.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000776/0.1566, allocations: 107.2 kB / 366.7 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.297e-05/0.1567, allocations: 44.02 kB / 366.8 MB, free: 11.95 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.0004227/0.1571, allocations: 249.6 kB / 367 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.1572, allocations: 79.08 kB / 367.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.1592, allocations: 0.9675 MB / 368.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.1592, allocations: 8 kB / 368.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1593, allocations: 0 / 368.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.1593, allocations: 3.984 kB / 368.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.1624, allocations: 1.951 MB / 370 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.1624, allocations: 0 / 370 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004628/0.1629, allocations: 99.88 kB / 370.1 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007847/0.1637, allocations: 269.4 kB / 370.4 MB, free: 8.242 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.759e-05/0.1637, allocations: 23.98 kB / 370.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005024/0.1688, allocations: 4.809 MB / 375.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1688, allocations: 0 / 375.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.1713, allocations: 1.396 MB / 376.6 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/0.1716, allocations: 212.5 kB / 376.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.664e-05/0.1717, allocations: 16 kB / 376.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.1721, allocations: 47.89 kB / 376.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.1723, allocations: 72.89 kB / 377 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.1724, allocations: 27.98 kB / 377 MB, free: 1.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003562/0.1727, allocations: 326.8 kB / 377.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1727, allocations: 3.938 kB / 377.3 MB, free: 1 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001052/0.1738, allocations: 315.1 kB / 377.6 MB, free: 0.6914 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.0002605/0.1741, allocations: 147 kB / 377.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.122/0.296, allocations: 1.144 MB / 378.9 MB, free: 52.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.2961, allocations: 1.188 kB / 378.9 MB, free: 52.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.2972, allocations: 0.7433 MB / 379.7 MB, free: 52.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007018/0.2979, allocations: 119.3 kB / 379.8 MB, free: 52.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.301, allocations: 2.147 MB / 381.9 MB, free: 51.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004085/0.3014, allocations: 0.9927 MB / 382.9 MB, free: 50.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.3016, allocations: 65.73 kB / 383 MB, free: 50.63 MB / 318.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3016, allocations: 1.406 kB / 383 MB, free: 50.63 MB / 318.1 MB Notification: Performance of Templates: time 0.01767/0.3193, allocations: 17.54 MB / 400.5 MB, free: 42.96 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","../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