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.001567/0.001567, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 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.001539/0.001539, allocations: 213.4 kB / 23.74 MB, free: 4.695 MB / 14.72 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 1.494/1.494, allocations: 230.5 MB / 257.4 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001861/0.001861, allocations: 63.89 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2887, allocations: 53.41 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.008618/0.2974, allocations: 6.349 MB / 437.5 MB, free: 316 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004711/0.3021, allocations: 2.254 MB / 439.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004935/0.3026, allocations: 23.88 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001947/0.3045, allocations: 0.7577 MB / 440.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001502/0.306, allocations: 0.6208 MB / 441.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.3072, allocations: 0.53 MB / 441.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.3085, allocations: 1.199 MB / 442.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.3097, allocations: 0.7737 MB / 443.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006658/0.3104, allocations: 486.3 kB / 444.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007644/0.3112, allocations: 0.5367 MB / 444.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.3113, allocations: 116 kB / 444.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005895/0.3119, allocations: 279.8 kB / 445.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002359/0.3121, allocations: 259.1 kB / 445.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000532/0.3127, allocations: 0.5481 MB / 445.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001832/0.3145, allocations: 1.49 MB / 447.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3145, allocations: 4 kB / 447.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3145, allocations: 0 / 447.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.3145, allocations: 0 / 447.4 MB, free: 6.395 MB / 350.1 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.003471/0.318, allocations: 1.662 MB / 449.1 MB, free: 4.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3181, allocations: 8.031 kB / 449.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002516/0.3183, allocations: 178.2 kB / 449.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002366/0.3207, allocations: 395.9 kB / 449.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009763/0.3217, allocations: 0.5133 MB / 450.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.824e-05/0.3217, allocations: 78.38 kB / 450.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.3219, allocations: 100.4 kB / 450.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001899/0.3238, allocations: 1.031 MB / 451.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.3238, allocations: 0 / 451.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.362e-05/0.3239, allocations: 44 kB / 451.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.49e-05/0.3239, allocations: 24 kB / 451.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.3257, allocations: 0.8588 MB / 452.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005494/0.3312, allocations: 3.361 MB / 455.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.333, allocations: 0.8592 MB / 456.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000854/0.3339, allocations: 401.8 kB / 456.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.334, allocations: 24.62 kB / 456.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009198/0.3349, allocations: 0.4891 MB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 2.265e-06/0.3349, allocations: 0 / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=84): time 0.004397/0.3393, allocations: 1.493 MB / 458.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002143/0.3395, allocations: 188.9 kB / 459.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.3401, allocations: 482 kB / 459.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3402, allocations: 41.7 kB / 459.6 MB, free: 9.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.3405, allocations: 428.7 kB / 460 MB, free: 9.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.3408, allocations: 297.6 kB / 460.3 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/0.341, allocations: 154.6 kB / 460.4 MB, free: 8.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.3412, allocations: 374.8 kB / 460.8 MB, free: 8.598 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.3418, allocations: 265.9 kB / 461.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007797/0.3426, allocations: 495.2 kB / 461.6 MB, free: 7.766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3439, allocations: 0.7356 MB / 462.3 MB, free: 6.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3439, allocations: 0 / 462.3 MB, free: 6.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002098/0.346, allocations: 1.033 MB / 463.3 MB, free: 5.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.346, allocations: 4 kB / 463.3 MB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.346, allocations: 8 kB / 463.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009556/0.347, allocations: 273 kB / 463.6 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.3475, allocations: 143.8 kB / 463.7 MB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00634/0.3539, allocations: 4.648 MB / 468.4 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006901/0.3546, allocations: 103.4 kB / 468.5 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-05/0.3546, allocations: 35.94 kB / 468.5 MB, free: 496 kB / 366.1 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.0005283/0.3551, allocations: 250.5 kB / 468.8 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.3553, allocations: 71.58 kB / 468.8 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/0.3575, allocations: 0.9555 MB / 469.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.3575, allocations: 8 kB / 469.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3575, allocations: 0 / 469.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.3575, allocations: 3.984 kB / 469.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/0.3611, allocations: 1.877 MB / 471.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.3611, allocations: 4.062 kB / 471.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.3616, allocations: 99.88 kB / 471.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008634/0.3625, allocations: 257.5 kB / 472 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.81e-05/0.3625, allocations: 19.92 kB / 472.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00619/0.3687, allocations: 4.613 MB / 476.7 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.3687, allocations: 4.031 kB / 476.7 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/0.3716, allocations: 1.37 MB / 478 MB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.372, allocations: 135.4 kB / 478.2 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.3721, allocations: 23.97 kB / 478.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.3726, allocations: 39.97 kB / 478.2 MB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.3728, allocations: 72.86 kB / 478.3 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.255e-05/0.3728, allocations: 27.94 kB / 478.3 MB, free: 6.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004735/0.3733, allocations: 330.9 kB / 478.7 MB, free: 6.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3733, allocations: 3.938 kB / 478.7 MB, free: 6.004 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001191/0.3745, allocations: 315.3 kB / 479 MB, free: 5.695 MB / 382.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,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.003584/0.3781, allocations: 1.973 MB / 480.9 MB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002374/0.3804, allocations: 1.064 MB / 482 MB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.3804, allocations: 0 / 482 MB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.3818, allocations: 0.7092 MB / 482.7 MB, free: 1.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007233/0.3826, allocations: 122.2 kB / 482.8 MB, free: 1.738 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/0.395, allocations: 6.535 MB / 489.4 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.396, allocations: 1.002 MB / 490.4 MB, free: 9.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004086/0.3964, allocations: 73.5 kB / 490.4 MB, free: 9.844 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005304/0.397, allocations: 331.3 kB / 490.8 MB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 1.323e-06/0.397, allocations: 4 kB / 490.8 MB, free: 9.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07159/0.4686, allocations: 20.4 MB / 0.4992 GB, free: 5.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.89/16.36, allocations: 3.938 kB / 0.4992 GB, free: 5.316 MB / 414.1 MB " [Timeout remaining time 644] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","/var/lib/jenkins1/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: 19.45849383994937]