Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.001793/0.001793, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002179/0.002179, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1849/0.1849, allocations: 38.53 MB / 352.5 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 59.91 kB / 492.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3085, allocations: 62.48 MB / 0.542 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.00881/0.3173, allocations: 6.533 MB / 0.5484 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002862/0.3202, allocations: 1.479 MB / 0.5498 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003155/0.3205, allocations: 33.31 kB / 0.5499 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005165/0.321, allocations: 159.6 kB / 0.55 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008751/0.3219, allocations: 422.9 kB / 0.5504 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005159/0.3224, allocations: 220.6 kB / 0.5506 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.3236, allocations: 1.117 MB / 0.5517 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003639/0.324, allocations: 217.5 kB / 0.5519 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007338/0.3247, allocations: 0.4931 MB / 0.5524 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008349/0.3256, allocations: 0.5704 MB / 0.553 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.47e-05/0.3257, allocations: 65.12 kB / 0.553 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.3258, allocations: 66.69 kB / 0.5531 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003278/0.3261, allocations: 326.6 kB / 0.5534 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000386/0.3265, allocations: 369.7 kB / 0.5538 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000973/0.3275, allocations: 0.877 MB / 0.5546 GB, free: 7.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3275, allocations: 1.344 kB / 0.5546 GB, free: 7.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3275, allocations: 0 / 0.5546 GB, free: 7.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3275, allocations: 0 / 0.5546 GB, free: 7.027 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001987/0.3295, allocations: 0.972 MB / 0.5556 GB, free: 6.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3295, allocations: 14.14 kB / 0.5556 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.3296, allocations: 99.89 kB / 0.5557 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.3298, allocations: 77.19 kB / 0.5557 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.3308, allocations: 0.5113 MB / 0.5562 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002438/0.3311, allocations: 234 kB / 0.5565 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.3312, allocations: 52 kB / 0.5565 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.3325, allocations: 0.7888 MB / 0.5573 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3326, allocations: 0 / 0.5573 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.858e-05/0.3326, allocations: 24 kB / 0.5573 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.3327, allocations: 36.97 kB / 0.5573 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.3341, allocations: 0.6986 MB / 0.558 GB, free: 3.91 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004324/0.3384, allocations: 2.645 MB / 0.5606 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.3401, allocations: 0.7103 MB / 0.5613 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.3407, allocations: 305.6 kB / 0.5616 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.3407, allocations: 11.92 kB / 0.5616 GB, free: 136 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.3407, allocations: 38.56 kB / 0.5616 GB, free: 88 kB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.923e-06/0.3407, allocations: 3.938 kB / 0.5617 GB, free: 84 kB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.003707/0.3444, allocations: 1.649 MB / 0.5633 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.3445, allocations: 88.98 kB / 0.5633 GB, free: 14.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005448/0.3451, allocations: 425.9 kB / 0.5638 GB, free: 13.85 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.3451, allocations: 29.7 kB / 0.5638 GB, free: 13.82 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.3453, allocations: 324.8 kB / 0.5641 GB, free: 13.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.3455, allocations: 142.8 kB / 0.5642 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.3456, allocations: 90.22 kB / 0.5643 GB, free: 13.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3458, allocations: 358.8 kB / 0.5647 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/0.3463, allocations: 232.8 kB / 0.5649 GB, free: 12.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005931/0.3469, allocations: 349.7 kB / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.348, allocations: 0.578 MB / 0.5658 GB, free: 11.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.348, allocations: 4 kB / 0.5658 GB, free: 11.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001437/0.3494, allocations: 0.7169 MB / 0.5665 GB, free: 10.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3494, allocations: 4 kB / 0.5665 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3494, allocations: 4 kB / 0.5665 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.3497, allocations: 81.88 kB / 0.5666 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.351, allocations: 287.5 kB / 0.5668 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006844/0.3579, allocations: 6.091 MB / 0.5728 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.3584, allocations: 35.95 kB / 0.5728 GB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.3584, allocations: 19.94 kB / 0.5728 GB, free: 3.957 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004204/0.3588, allocations: 241.6 kB / 0.5731 GB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.3589, allocations: 55.72 kB / 0.5731 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.3603, allocations: 0.6468 MB / 0.5738 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.3603, allocations: 11.98 kB / 0.5738 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.3603, allocations: 4 kB / 0.5738 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3603, allocations: 3.938 kB / 0.5738 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002747/0.3631, allocations: 1.387 MB / 0.5751 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3631, allocations: 0 / 0.5751 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.3646, allocations: 307.6 kB / 0.5754 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002741/0.3648, allocations: 85.62 kB / 0.5755 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.3649, allocations: 8 kB / 0.5755 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002841/0.3677, allocations: 2.962 MB / 0.5784 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3677, allocations: 0 / 0.5784 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.3697, allocations: 1.056 MB / 0.5794 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.3698, allocations: 47.67 kB / 0.5795 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.778e-05/0.3699, allocations: 8 kB / 0.5795 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.3702, allocations: 31.95 kB / 0.5795 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.3703, allocations: 39.88 kB / 0.5796 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.3704, allocations: 11.98 kB / 0.5796 GB, free: 12.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003972/0.3708, allocations: 303.1 kB / 0.5799 GB, free: 12.42 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3708, allocations: 4 kB / 0.5799 GB, free: 12.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007863/0.3716, allocations: 136 kB / 0.58 GB, free: 12.29 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002421/0.374, allocations: 1.587 MB / 0.5815 GB, free: 10.65 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.3766, allocations: 0.9813 MB / 0.5825 GB, free: 9.645 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3766, allocations: 0 / 0.5825 GB, free: 9.645 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.3785, allocations: 0.7083 MB / 0.5832 GB, free: 8.91 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007947/0.3793, allocations: 143.9 kB / 0.5833 GB, free: 8.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00839/0.3877, allocations: 5.382 MB / 0.5886 GB, free: 3.176 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.3883, allocations: 0.9487 MB / 0.5895 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003019/0.3886, allocations: 96.55 kB / 0.5896 GB, free: 2.105 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.3889, allocations: 199.4 kB / 0.5898 GB, free: 1.91 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3889, allocations: 0 / 0.5898 GB, free: 1.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05247/0.4414, allocations: 13.33 MB / 0.6028 GB, free: 4.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.35, allocations: 7.688 kB / 0.6028 GB, free: 4.766 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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: 17.204098219051957]