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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007963/0.0007963, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004906/0.004906, allocations: 166 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8176/0.8176, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.959e-06/1.109e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.108/0.108, allocations: 5.564 MB / 304 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002429/0.1104, allocations: 2.073 MB / 306.1 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.1107, allocations: 20.75 kB / 306.1 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000954/0.1117, allocations: 0.7488 MB / 306.8 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007957/0.1125, allocations: 0.628 MB / 307.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005691/0.113, allocations: 492.8 kB / 308 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007249/0.1138, allocations: 1.236 MB / 309.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007079/0.1145, allocations: 0.7545 MB / 309.9 MB, free: 9.684 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005309/0.115, allocations: 0.6914 MB / 310.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004196/0.1154, allocations: 416.1 kB / 311 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.1155, allocations: 111.7 kB / 311.2 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003371/0.1159, allocations: 261.1 kB / 311.4 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.116, allocations: 261.6 kB / 311.7 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002557/0.1162, allocations: 384.7 kB / 312 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.1174, allocations: 1.503 MB / 313.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1174, allocations: 0 / 313.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1174, allocations: 3.75 kB / 313.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.1174, allocations: 0 / 313.5 MB, free: 8.195 MB / 282.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.001973/0.1194, allocations: 1.659 MB / 315.2 MB, free: 7.223 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1194, allocations: 13.3 kB / 315.2 MB, free: 7.219 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.1196, allocations: 170.7 kB / 315.4 MB, free: 7.105 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/0.121, allocations: 481.8 kB / 315.9 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.1216, allocations: 0.5131 MB / 316.4 MB, free: 6.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.1216, allocations: 80.08 kB / 316.4 MB, free: 6.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.927e-05/0.1217, allocations: 101.8 kB / 316.5 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1229, allocations: 1.158 MB / 317.7 MB, free: 5.953 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.1229, allocations: 6.188 kB / 317.7 MB, free: 5.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.853e-05/0.123, allocations: 40.75 kB / 317.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.123, allocations: 25.5 kB / 317.8 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1241, allocations: 0.9178 MB / 318.7 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003032/0.1271, allocations: 3.2 MB / 321.9 MB, free: 3.281 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.1282, allocations: 0.9146 MB / 322.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/0.1288, allocations: 412.7 kB / 323.2 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.497e-05/0.1288, allocations: 12.12 kB / 323.2 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004935/0.1293, allocations: 0.5896 MB / 323.8 MB, free: 2.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 1.864e-06/0.1293, allocations: 0 / 323.8 MB, free: 2.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=86): time 0.002376/0.1317, allocations: 1.501 MB / 325.3 MB, free: 1.387 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.1317, allocations: 195.6 kB / 325.5 MB, free: 1.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.132, allocations: 479.6 kB / 326 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.1321, allocations: 50 kB / 326 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1322, allocations: 439.7 kB / 326.5 MB, free: 444 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.883e-05/0.1323, allocations: 299.9 kB / 326.7 MB, free: 176 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.1325, allocations: 165.9 kB / 326.9 MB, free: 72 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1326, allocations: 374 kB / 327.3 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.1329, allocations: 271.8 kB / 327.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004829/0.1334, allocations: 0.6266 MB / 328.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.1342, allocations: 0.798 MB / 329 MB, free: 14.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.1342, allocations: 2.938 kB / 329 MB, free: 14.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001206/0.1354, allocations: 1.058 MB / 330 MB, free: 13.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1354, allocations: 12.53 kB / 330 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1354, allocations: 5.938 kB / 330 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005066/0.136, allocations: 269.8 kB / 330.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003007/0.1363, allocations: 163.3 kB / 330.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003402/0.1397, allocations: 4.58 MB / 335 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.14, allocations: 112.2 kB / 335.2 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.013e-05/0.14, allocations: 40.06 kB / 335.2 MB, free: 9.164 MB / 298.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,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean1.y,$PRE.iAC.mean1.y,iAC.mean2.y,$PRE.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 (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.0005013/0.1405, allocations: 253.5 kB / 335.4 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.766e-05/0.1406, allocations: 71.58 kB / 335.5 MB, free: 8.836 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.1418, allocations: 0.9869 MB / 336.5 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1418, allocations: 8 kB / 336.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.1418, allocations: 4 kB / 336.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.1418, allocations: 3.984 kB / 336.5 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.1437, allocations: 1.792 MB / 338.3 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1437, allocations: 3.312 kB / 338.3 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.1439, allocations: 99.83 kB / 338.4 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004278/0.1443, allocations: 265.4 kB / 338.7 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.1444, allocations: 19.98 kB / 338.7 MB, free: 5.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00334/0.1477, allocations: 4.54 MB / 343.2 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.1477, allocations: 3.984 kB / 343.2 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.1492, allocations: 1.373 MB / 344.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.1494, allocations: 147.3 kB / 344.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.1495, allocations: 19.94 kB / 344.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.1497, allocations: 43.97 kB / 344.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.1498, allocations: 76.8 kB / 344.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.1498, allocations: 30.8 kB / 344.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002318/0.1501, allocations: 318.9 kB / 345.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1501, allocations: 0 / 345.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006522/0.1507, allocations: 311.4 kB / 345.5 MB, free: 14.48 MB / 314.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,iDC2.mean.x,iAC.mean2.x,iAC.mean1.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off,iAC.mean2.y,iAC.mean1.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.001801/0.1525, allocations: 1.972 MB / 347.5 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.1537, allocations: 1.069 MB / 348.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1537, allocations: 0 / 348.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.1543, allocations: 0.7211 MB / 349.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.1547, allocations: 119.2 kB / 349.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006707/0.1614, allocations: 6.62 MB / 356 MB, free: 3.598 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.1617, allocations: 408.5 kB / 356.4 MB, free: 3.164 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000207/0.1619, allocations: 85.66 kB / 356.5 MB, free: 3.078 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005019/0.1624, allocations: 328.4 kB / 356.8 MB, free: 2.758 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1624, allocations: 0 / 356.8 MB, free: 2.758 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/0.1952, allocations: 20.14 MB / 377 MB, free: 14.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.416/8.611, allocations: 15.75 kB / 377 MB, free: 14.52 MB / 346.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.467349871993065]