Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008497/0.0008497, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008624/0.0008624, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8879/0.8879, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.295e-06/2.295e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.476e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005346/0.005371, allocations: 5.609 MB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004094/0.009465, allocations: 2.133 MB / 332.3 MB, free: 8.109 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007115/0.01018, allocations: 23.88 kB / 332.3 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.01157, allocations: 0.738 MB / 333 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.01285, allocations: 0.6086 MB / 333.6 MB, free: 6.734 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009293/0.01378, allocations: 0.5219 MB / 334.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.01479, allocations: 1.234 MB / 335.4 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008081/0.01559, allocations: 0.7572 MB / 336.1 MB, free: 4.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005991/0.01619, allocations: 0.6976 MB / 336.8 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004209/0.01661, allocations: 406.8 kB / 337.2 MB, free: 3.094 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.01672, allocations: 116 kB / 337.4 MB, free: 2.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004797/0.0172, allocations: 279.6 kB / 337.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.01736, allocations: 255 kB / 337.9 MB, free: 2.457 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002876/0.01765, allocations: 387 kB / 338.3 MB, free: 2.078 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.01878, allocations: 1.519 MB / 339.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.01879, allocations: 0 / 339.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.01879, allocations: 0 / 339.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.0188, allocations: 0 / 339.8 MB, free: 0.5508 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002131/0.02093, allocations: 1.666 MB / 341.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.02098, allocations: 15.98 kB / 341.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000218/0.0212, allocations: 162.4 kB / 341.6 MB, free: 14.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/0.02245, allocations: 391.9 kB / 342 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006952/0.02314, allocations: 0.5281 MB / 342.5 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.02319, allocations: 74.38 kB / 342.6 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.02329, allocations: 108.4 kB / 342.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.02454, allocations: 1.124 MB / 343.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.02457, allocations: 4.188 kB / 343.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-05/0.02463, allocations: 39.94 kB / 343.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.02465, allocations: 27.98 kB / 343.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.0257, allocations: 0.855 MB / 344.7 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003431/0.02913, allocations: 3.098 MB / 347.8 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.03062, allocations: 0.8512 MB / 348.7 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005393/0.03116, allocations: 399.4 kB / 349.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.919e-05/0.03124, allocations: 24.64 kB / 349.1 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005942/0.03183, allocations: 0.5856 MB / 349.7 MB, free: 6.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=84): time 2.044e-06/0.03184, allocations: 8 kB / 349.7 MB, free: 6.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=84): time 0.002588/0.03442, allocations: 1.477 MB / 351.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.03451, allocations: 200.8 kB / 351.4 MB, free: 4.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/0.03494, allocations: 493.9 kB / 351.9 MB, free: 4.055 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.03498, allocations: 41.7 kB / 351.9 MB, free: 4.008 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.03518, allocations: 428.7 kB / 352.3 MB, free: 3.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.03533, allocations: 289.5 kB / 352.6 MB, free: 3.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.03549, allocations: 150.6 kB / 352.8 MB, free: 3.145 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.03561, allocations: 382.7 kB / 353.1 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003497/0.03596, allocations: 273.9 kB / 353.4 MB, free: 2.492 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004845/0.03645, allocations: 0.5762 MB / 354 MB, free: 1.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/0.03724, allocations: 0.7357 MB / 354.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.03724, allocations: 0 / 354.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001523/0.03876, allocations: 1.029 MB / 355.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.03879, allocations: 8 kB / 355.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.0388, allocations: 8.062 kB / 355.7 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005728/0.03938, allocations: 265.4 kB / 356 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.03966, allocations: 147.8 kB / 356.2 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003699/0.04336, allocations: 4.586 MB / 360.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.04371, allocations: 99.5 kB / 360.8 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.79e-05/0.04375, allocations: 36 kB / 360.9 MB, free: 10.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0003103/0.04406, allocations: 243.1 kB / 361.1 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.603e-05/0.04414, allocations: 75.52 kB / 361.2 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.04538, allocations: 0.9554 MB / 362.1 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.054e-06/0.04538, allocations: 8 kB / 362.1 MB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.04539, allocations: 3.938 kB / 362.1 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.04539, allocations: 3.984 kB / 362.2 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.04763, allocations: 1.776 MB / 363.9 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.04763, allocations: 0 / 363.9 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.04786, allocations: 95.88 kB / 364 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004431/0.0483, allocations: 257.5 kB / 364.3 MB, free: 7.098 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.04834, allocations: 23.98 kB / 364.3 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003212/0.05155, allocations: 4.552 MB / 368.8 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.05155, allocations: 4.031 kB / 368.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.05334, allocations: 1.362 MB / 370.2 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/0.05353, allocations: 143.3 kB / 370.4 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.05358, allocations: 23.94 kB / 370.4 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.0538, allocations: 44.16 kB / 370.4 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.05393, allocations: 72.8 kB / 370.5 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.125e-05/0.05396, allocations: 35.92 kB / 370.5 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002633/0.05422, allocations: 322.9 kB / 370.8 MB, free: 288 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.05422, allocations: 3.938 kB / 370.8 MB, free: 284 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008237/0.05505, allocations: 311.4 kB / 371.2 MB, free: 15.97 MB / 346.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_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off,iAC.mean2.y_last,iAC.mean1.y_last) * 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 (57): * Single equations (assignments): 52 * 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.001908/0.05695, allocations: 1.968 MB / 373.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.05827, allocations: 1.049 MB / 374.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.05827, allocations: 0 / 374.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006996/0.05897, allocations: 0.7132 MB / 374.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.05943, allocations: 122.4 kB / 375 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00719/0.06662, allocations: 6.496 MB / 381.5 MB, free: 5.273 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.06695, allocations: 416.5 kB / 381.9 MB, free: 4.836 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.06719, allocations: 81.48 kB / 382 MB, free: 4.754 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.06747, allocations: 328.4 kB / 382.3 MB, free: 4.434 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.06747, allocations: 0 / 382.3 MB, free: 4.434 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04043/0.1079, allocations: 20.28 MB / 402.6 MB, free: 392 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.309, allocations: 7.156 kB / 402.6 MB, free: 388 kB / 362.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.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.409405472688377]